Section 24.136. Number.toLocaleString( ): convert a number to a locally formatted string


24.136. Number.toLocaleString( ): convert a number to a locally formatted string

ECMAScript v3

24.136.1. Synopsis

number.toLocaleString( )

24.136.1.1. Returns

An implementation-dependent string representation of the number, formatted according to local conventions, which may affect such things as the punctuation characters used for the decimal point and the thousands separator.

24.136.1.2. Throws

TypeError

If this method is invoked on an object that is not a Number.

24.136.2. See Also

Number.toExponential( ), Number.toFixed( ), Number.toPrecision( ), Number.toString( )




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net