javascript Number toExponential( )
@March 15, 2008, 1:22 a.m.
toExponential( ) | Firefox/Netscape/NN 6 IE 5.5(Win) ECMA 3 |
toExponential(fractionDigits) | |
Returns a string containing the number object's value displayed in JavaScript's exponential notation. The single parameter specifies the number of digits to the right of the decimal to display in the string. For example, if a variable contains the number 9876.54, if you apply the toExponential(10) method, the result is 9.8765400000E+3, with zeroes padding the rightmost digits to reach a total of 10 digits to the right of the decimal. If you specify a parameter that yields a display with fewer digits than in the original number, the returned value is rounded. |
|
Parameters | |
|
|
Returned Value | |
String. |
Permanent URL:
http://javascript.gakaa.com/number-toexponential-4-0-5-.aspx
Powered by Linode.