Releases: elixir-cldr/cldr_numbers
Cldr Numbers version 1.4.4.
Enhancements
- Relaxes the requirement for ex_cldr
Cldr Numbers version 1.4.3
Enhancements
- Extracts the data encapsultion for currencies to its own package ex_cldr_currencies. This package is a dependency here and optionally for the package ex_cldr_html.
Cldr Numbers version 1.4.2
Enhancements
- Supports formatting valid but unknown currency codes. These codes are defined by ISO4217 to begin with "X" and have two following alphabetic characters. Since these currency codes are valid but unknown to
Cldr
, the formatted output is based upon incomplete information.
Cldr Numbers version 1.4.1
Enhancements
- Update ex_cldr dependency to version 1.5.1 so we can use
Cldr.Config.app_name/0
instead of hard-coding the app name:ex_cldr
Cldr Numbers version 1.4.0
Enhancements
- Update ex_cldr dependency to version 1.5.0 which uses CLDR data version 33.
Cldr Numbers version 1.3.1
Enhancements
- Performance improvement for zero padding numbers during formatting
Cldr Numbers version 1.3.0
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.
Cldr Numbers v1.3.0-rc.1
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.
Cldr Numbers version 1.3.0-rc.0
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
.
Deprecations
- The option
cash: <boolean>
forCldr.Number.to_string/2
is deprecated and will be removed incldr_numbers
version 2.0.
Cldr_Numbers version 1.2.0
Enhancements
-
Add
Cldr.Number.precision/1
tor return the number of digits in a float, integer or Decimal. This function delegates toCldr.Digits.number_of_digits/1
-
Cldr.Number.String.chunk_string/3
is now Elixir version dependent since in Elixir version 1.7String.chunk/4
is deprecated in favour ofString.chunk_every/4