## toExponential Method |
Top Previous Next |

Converts a number into an exponential notation. ## Syntaxnumber1.toExponential(number2) ## Arguments
## Return ValueThe number as an exponential notation. ## RemarksIf the argument is missing, it is set to 6 digits to represent the exponential value of the given number. if the argument is higher than 21 higher, nulls are added to create the actual decimal length. ## Examplesvar num= 5.85236; var n=num.toExponential(4); // Returns 5.8524e0 |