Number.toLocaleString() (Method)

Converts a number to a string taking locale-specific settings into account.


ECMAScript edition - 3
JavaScript - 1.5
JScript - 5.5
Internet Explorer - 5.5
Netscape - 6.0
Property/method value type:String primitive
JavaScript syntax:-myNumber.toLocaleString()

Locale conventions may include special formatting of numbers such as thousands separators and decimal point symbols. The number will be converted according to the rules defined by the implementation's locale setting.



ECMA 262 edition 3 - section -