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.
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
, and4,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.