Skip to content

Cldr Units version 3.17.0

Compare
Choose a tag to compare
@kipcole9 kipcole9 released this 20 Apr 22:50
· 5 commits to main since this release

Bug Fixes

  • Fixes canonical unit name formation. More units can now be resolved to a base unit and therefore compared and converted with other units. The primary change is to add elimination of common factors in "per" units.

Enhancements

  • Add conversion support for Beaufort. This conversion is non linear and therefore cannot be expressed using the normal unit conversion method.

  • Cldr.Unit.Math.mult/2 and Cldr.Unit.Math.div/2 now support scalar values as the second argument. It's therefore now possible to say Cldr.Unit.Math.mult(Cldr.Unit.new!(:meter, 10), 2).