Intl.js icon indicating copy to clipboard operation
Intl.js copied to clipboard

The decimal separator seems to be hard-coded

Open d-oderbolz opened this issue 7 years ago • 1 comments
trafficstars

The code in

https://github.com/andyearnshaw/Intl.js/blob/master/src/11.numberformat.js

Leads me to believe that the decimal separator "." is hard-coded, rahter than taken from the locale. Note that for example in Germany "," is the proper decimal separator.

d-oderbolz avatar Jul 13 '18 08:07 d-oderbolz

Not sure what you're talking about. Do you mean this line? I think it splits the number according its toString representation, which is locale independant.

ghostd avatar Aug 10 '18 19:08 ghostd