toExponential
Summary
Formats the integer value using exponential notation.
Signatures
Click on a signature to select it and view its documentation.
Usage
public string toExponential()
Returns
The integer value formatted using exponential notation.
Description
The number of digits appearing after the decimal point will be the number of digits required to uniquely identify the value.
Examples
1 2 3 4 5 6 7 8 | import System; unsigned int x = 100; unsigned int y = 1000; unsigned int z = 10000; Console.log(x.toExponential()); // "1e+2" Console.log(y.toExponential()); // "1e+3" Console.log(z.toExponential()); // "1e+4" |
Share
HTML | BBCode | Direct Link