This may be set to true
to make the currency function
append the currency sign to the formatted value.
This defaults to false
, but may be overridden in a locale file.
The number of decimal places that the currency function displays.
This defaults to 2
, but may be overridden in a locale file.
The character that the number function uses as a decimal point.
This defaults to .
, but may be overridden in a locale file.
The character that the number function uses as a thousand separator.
This defaults to ,
, but may be overridden in a locale file.
var tpl = new Ext.Template('{value} * 10 = {value:math("* 10")}');
Formats the passed number according to the passed format string.
The number of digits after the decimal separator character specifies the number of decimal places in the resulting string. The local-specific decimal character is used in the result.
The presence of a thousand separator character in the format string specifies that the locale-specific thousand separator (if any) is inserted separating thousand groups.
By default, "," is expected as the thousand separator, and "." is expected as the decimal separator.
New to Ext4
Locale-specific characters are always used in the formatted output when inserting thousand and decimal separators.
The format string must specify separator characters according to US/UK conventions ("," as the thousand separator, and "." as the decimal separator)
To allow specification of format strings according to local conventions for separator characters, add
the string /i
to the end of the format string.