Skip to content

Cldr Numbers v1.3.0-rc.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@kipcole9 kipcole9 released this 31 Jan 12:12

Enhancements

  • In certain cases the ISO definition of a currencies decimal digits (subunit) differs from CLDR. One such example is the Colombian Peso where Cldr has the number of digits as 0 whereas ISO4217 has the number of digits as 2. Cldr 1.4 adds a field :iso_digits to the Cldr.Currency struct to allow the selection of the ISO definition as an option.

  • As a result the Cldr.Number.to_string/2 option cash: <boolean> is deprecated and a new option :currency_digits is introduced. The valid options for :currency_digits are :accounting (the default), :cash and :iso.

  • Requires ex_cldr version 1.4

Deprecations

  • The option cash: <boolean> for Cldr.Number.to_string/2 is deprecated and will be removed in cldr_numbers version 2.0.