Number Formatter is Now Localized
We have been working real hard recently as we have been adding features due to growing users’ demands. One new feature is number formatting has now internationalized and can be localized to any country’s commonly used numeric format. And we realized most of the time the commonly used numeric format is following the currency format in that particular country.
US, UK and many more | #,##0.00 |
Estonia, France | # ###,## |
Germany, Italy | #.###,## |
Japan | #,####.## |
Korea | #,### |
Switzerland | #’###.## |
The table showing some of the countries that having different currency formats, it is quite surprising to see all kind of possibilities and combinations. So the number formatter need to be extremely versatile almost like a spreadsheet custom formatting. So, is that mean the new number formatter parser will be bloated? No, totally opposite, despite we are adding in more feature, we also working hard in stripping down the code in order to avoid it from growing proportionally to more and more features. Moreover, we even speed up the code execution from every possible aspects.
We have been and still using many external open source libraries like JQuery, and we think it’s time for us to contribute back to the community whenever possible. So we are now publishing this JavaScript Number Formatter to Google Code Project.