4 ms·
I think that's a great start and your docs look good too. Unfortunately the native locale format functions are not always accurate for certain currencies and lo
by osrec 9y ago
I think that's a great start and your docs look good too. Unfortunately the native locale format functions are not always accurate for certain currencies and locales (e.g. the rupee). My team put together https://osrec.github.io/currencyFormatter.js/ https://osrec.github.io/currencyFormatter.js/ to help format currencies more accurately. You may want to give your users the option to use this library instead of toLocaleString for formatting.
- twright 9y agoThanks for this, I was about to comment the same thing! I don't really see the point of setting the locale if it doesn't automatically format the values or output currency's symbol.