Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

toExponential Method (JavaScript)

Returns a string containing a number represented in exponential notation.



Required. A Number object.


Optional. Number of digits after the decimal point. Must be in the range 0 – 20, inclusive.

The toExponential method returns a string representation of a number in exponential notation. The string contains one digit before the significand's decimal point, and may contain fractionDigits digits after it.

If fractionDigits is not supplied, the toExponential method returns as many digits necessary to uniquely specify the number.

Supported in the following document modes: Quirks, Internet Explorer 6 standards, Internet Explorer 7 standards, Internet Explorer 8 standards, Internet Explorer 9 standards. See Version Information.

Applies To: Number Object (JavaScript)

Community Additions

© 2015 Microsoft