You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 31, 2018. It is now read-only.
There is a problem with comma vs. dot as this is locale (language) dependant. What's more is that users often tend to paste formats different from their locale and this has to be handled in some meaningful way.
If we go for pure JavaScript solution then user may see changes to his input in the realtime - and I don't think we should bother backend with such details.
We can detect which format (comma/dot) user has in mind by looking how those symbols show up in the number. For example in English 1,499.99$ is a valid number. In Polish this may be written as 1 499,99zł.
One way to to handle this is to throw away non-digits and deduct which sign is used for decimal part based on number of decimal digits.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Allow to paste formatted amount, eg. "36.00zł"
The text was updated successfully, but these errors were encountered: