Formatting
Fixed allows you to format numbers to strings.
The following format characters are supported:
Internationally the '.' and ',' characters are used differently.
USA, UK, Australia etc
In countries such as the USA, UK and Australia the '.' (dot) is used as the delimiter between integer and decimal parts of a number whilst the ',' (comma) is used to group thousands.
Eleven Hundred dollars and 22 cents.
In Europe and other countries the '.' (dot) and ',' (comma) are reversed:
Europian countries etc
Eleven Hundred dollars and 22 cents.
Inverting separators
When formating a number you use the 'invertSeparator' argument to control who the separators character are used. By default, the USA, UK and Australia method is used. Pass invertSperator: false to use the European variation.
Example 4
Last updated