Closed seantanly closed 2 years ago
@seantanly, thanks for the PR, much appreciated. Gratefully accepted and will publish an update in the next few hours.
@kipcole9 Thank you for the fast turn around 👍
Published ex_cldr_units version 3.13.3 with the following changelog entry:
The PR fixes the issue
Cldr.Unit.compare
does not correctly evaluate units that are created fromDecimal
that is defined from string instead of integer.Instead of doing a simple comparison of Decimal value, which does a string comparison for above, now it relies on
Ratio.compare/2
that is more generic and accurate.