Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple decimal separators #685

Open
derwaldgeist opened this issue Dec 18, 2024 · 1 comment
Open

Multiple decimal separators #685

derwaldgeist opened this issue Dec 18, 2024 · 1 comment

Comments

@derwaldgeist
Copy link

derwaldgeist commented Dec 18, 2024

In many applications, it would make sense to accept more than one decimal separators and "normalize" it to the current locale. This is what Unity does, for instance. You can either use , or ., and it will auto-convert it to ..

Currently, if I enter 0,5 in German notation, input-number converts the number to the integer 5, which is almost never what you'd want.

@derwaldgeist
Copy link
Author

Just learned that if I set my browser to German, it works as expected. 0.5 will be auto-converted to 0,5. But why not the other way around?

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

No branches or pull requests

1 participant