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

Values formatted with group separators do not parse #136

Open
kawazoe opened this issue Apr 18, 2023 · 0 comments
Open

Values formatted with group separators do not parse #136

kawazoe opened this issue Apr 18, 2023 · 0 comments

Comments

@kawazoe
Copy link

kawazoe commented Apr 18, 2023

I've recently tried to use js-quantities to parse values produced by UnitsNet which formats units according to the user's locale. On my machine, the grouping separator is the comma , at every 3 digits. This means that the following values are all valid values: 4 kg, 4.5 kg, 450.5 kg, and 4,500.5 kg.

js-quantities does not seam to support grouping separators, so Qty.parse('4,500 kg') returns null.

My locale is en-CA.

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