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.format Function

Formats a number by using the invariant culture.

Syntax

var a = numberVar.format(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 format method to replace the Number object value with a culture-independent text representation that is based on the format parameter. The invariant culture is based on the "en-US" culture, but uses a different currency symbol.