Documentation for: ASP.NET Ajax Version 1.0

This documentation is for a previous version. For the current released version, see the ASP.NET Ajax documentation on MSDN.








Number.localeFormat Function

Formats a number by using the current culture.


var a = numberVar.localeFormat(format);



A format string.

Return Value

A string that contains the formatted number value.


Exception Type Condition


format is invalid.


Use the localeFormat method to get a string representation of the Number object values that are based on the format parameter. The localeFormat method provides the number based on a specific culture value (locale). The culture value is also used to display information for specific language and country combinations.

For more information about cultures and locales, see ASP.NET Globalization and Localization and the CultureInfo documentation. For more information about date and time string formats, see Standard Numeric Format Strings and Standard Numeric Format Strings Output Examples.