andyearnshaw / Intl.js

Compatibility implementation of the ECMAScript Internationalization API (ECMA-402) for JavaScript -- UNMAINTAINED
Other
1.7k stars 215 forks source link

The decimal separator seems to be hard-coded #313

Open d-oderbolz opened 6 years ago

d-oderbolz commented 6 years ago

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.

ghostd commented 6 years ago

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.