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.

Syntax

var a = numberVar.localeFormat(format);

Arguments

format

A format string.

Return Value

A string that contains the formatted number value.

Exceptions

Exception Type Condition

ArgumentException

format is invalid.

Remarks

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.