Number.prototype.toExponential

Returns a string containing a number represented in exponential notation.

Syntax

toExponential(fractionDigits?)

Parameters

Return value

A string.

Examples

(123456789).toExponential(2)
"1.23e+8"