Number.to_exponential

Number.to_exponential

Number.to_exponential

Function

Format a number into a scientific notation string.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
digitsIntNo6Number of decimal places; negative numbers are treated as 0.

Return value

TypeDescription
StringReturns a string in scientific notation.

Example

Notes

  • The result is a string, not a number.