squants icon indicating copy to clipboard operation
squants copied to clipboard

Inconsistent Quantity.toString behaviour on locales with decimal comma

Open exlevan opened this issue 7 years ago • 0 comments

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.

exlevan avatar Mar 02 '18 14:03 exlevan