Subscriber portal
Formats a number by using the invariant culture.
var a = numberVar.format(format);
A format string.
A string that contains the formatted number value.
Exception type
Condition
Sys.ArgumentException
format is invalid.
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.