From http://www.w3schools.com (Copyright Refsnes Data)
JavaScript Number Object
The toExponential() method converts the value of an object into an exponential notation.
| NumberObject.toExponential(num) |
| Parameter | Description |
|---|---|
| num | Required. Specifies the number of decimal places in the exponential notation |
ExampleConvert 10000 to an exponential notation:
The output of the code above will be: Try it yourself » |
JavaScript Number Object
From http://www.w3schools.com (Copyright Refsnes Data)