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
The following test defines two quantities that should be equals but because they are using a different Unit class they are not.
I think this impacts the usability of the library.
Regards.
It is not directly related to #384, but we won't fix this, because MetricPrefix.KILO(GRAM) becomes "1000 g" and that as you correctly asserted is a different unit, similar for the Number type of the value, because if you parse Quantity<Mass> w2 = (Quantity<Mass>) Quantities.getQuantity("12.5 kg"); with locales like GERMAN, etc. (or probably ITALIAN in your case) "12.5" also turns into 125, an Integer unlike the Double value of 12.5.
The following test defines two quantities that should be equals but because they are using a different Unit class they are not.
I think this impacts the usability of the library.
Regards.
The text was updated successfully, but these errors were encountered: