JavaScript Number toExponential()
JavaScript Number toExponential()
The toExponential() method is used to convert any number into an exponential notation.
Syntax:-
Its syntax is:- number.toExponential(x)
Return:-
Its return is:- string representing the number in exponential notation
Further Explanation:-
Parameter | Description |
---|---|
x | Optional. An integer between 0 and 20 represents the number of digits in the notation after the decimal point. |