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

Inconsistent Quantity.toString behaviour on locales with decimal comma #301

Open
exlevan opened this issue Mar 2, 2018 · 0 comments
Open

Comments

@exlevan
Copy link

exlevan commented Mar 2, 2018

When a Quantity is converted to String on locales that use comma as a decimal separator (such as russian or french), the number is displayed differently depending on whether it's close to a whole number or not. For example, 0.0 is displayed as 0,0 units and 0.5 as 0.5 units. This is caused by the code in squants.Platform, which uses both locale-dependent format and locale-independent toString.

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