Cldr Numbers v1.3.0-rc.1
Pre-release
Pre-release
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 theCldr.Currency
struct to allow the selection of the ISO definition as an option. -
As a result the
Cldr.Number.to_string/2
optioncash: <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>
forCldr.Number.to_string/2
is deprecated and will be removed incldr_numbers
version 2.0.