number-to-exponential
v2.0.0
Published
Change to normal number to exponential number with easily.
Downloads
3
Maintainers
Readme
📌 What does this module do?
- Change to normal number to exponential number with easily.
- Example: 10 ➟ ¹⁰ [number to string]
- Optional: you can add to space example: 10 ➟ ¹ ⁰
📕 How to use it?
const numExp = require("number-to-exponential");
var number = 10;
async function exp() {
var exponentialNumber = numExp.run(number);
console.log(exponentialNumber);//¹⁰
};
exp()
const numExp = require("number-to-exponential");
var number = 10;
var space = true;
async function exp() {
var exponentialNumber = numExp.run(number,space);
console.log(exponentialNumber);//¹ ⁰
};
exp()