js-big-decimal
js-big-decimal copied to clipboard
Support for locale-aware prettyValue()
It should be possible to get prettyValue() based on current user locale. For example, in different countries value 4,294,967,295.00
might be presented as:
-
4 294 967 295,000
-
4,294,967,295.00
-
4.294.967.295,000
- etc (for example, https://docs.oracle.com/cd/E19455-01/806-0169/overview-9/index.html).
Popular UI frameworks already have the capability to format numbers and currencies based on locale. Locale will be taken up at some leter point for this library.