Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

The decimal separator seems to be hard-coded #313

Open
d-oderbolz opened this issue Jul 13, 2018 · 1 comment
Open

The decimal separator seems to be hard-coded #313

d-oderbolz opened this issue Jul 13, 2018 · 1 comment

Comments

@d-oderbolz
Copy link

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
Copy link

ghostd commented Aug 10, 2018

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants