JavaScript Number method: toExponential()
[this page | pdf | back links]
The toExponential() method (when applied
to JavaScript
numbers) returns
a string representing the number in exponential notation, e.g. 301 is 3.01e+2.
It
has the following syntax with the following parameters:
number.toExponential(n)
|
Parameter
|
Required / Optional
|
Description
|
|
n
|
Optional
|
Integer between 0 and
20 indicating number of digits after decimal point
|
NAVIGATION LINKS
Contents | Prev | Next | JavaScript Numbers and Math