toExponential Method (Windows Scripting - JScript)

 

Returns a string containing a number represented in exponential notation.

Syntax

numObj.toExponential([fractionDigits])

Arguments

  • numObj
    Required. A Number object.

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

Remarks

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.

Requirements

Version 5.5

Applies To: Number Object (Windows Scripting - JScript)

See Also

toFixed Method (Windows Scripting - JScript)
toPrecision Method (Windows Scripting - JScript)