Skip to content

Releases: elixir-cldr/cldr_numbers

Cldr Numbers version 1.4.4.

30 May 11:17
Compare
Choose a tag to compare

Enhancements

  • Relaxes the requirement for ex_cldr

Cldr Numbers version 1.4.3

28 May 12:19
Compare
Choose a tag to compare

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

09 Apr 16:24
Compare
Choose a tag to compare

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

01 Apr 03:16
Compare
Choose a tag to compare

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

29 Mar 00:12
Compare
Choose a tag to compare

Enhancements

  • Update ex_cldr dependency to version 1.5.0 which uses CLDR data version 33.

Cldr Numbers version 1.3.1

19 Feb 02:51
Compare
Choose a tag to compare

Enhancements

  • Performance improvement for zero padding numbers during formatting

Cldr Numbers version 1.3.0

04 Feb 01:55
Compare
Choose a tag to compare

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.

Cldr Numbers v1.3.0-rc.1

31 Jan 12:12
Compare
Choose a tag to compare
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 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.

Cldr Numbers version 1.3.0-rc.0

31 Jan 11:00
Compare
Choose a tag to compare
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 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.

Deprecations

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

Cldr_Numbers version 1.2.0

14 Jan 00:43
Compare
Choose a tag to compare

Enhancements

  • Add Cldr.Number.precision/1 tor return the number of digits in a float, integer or Decimal. This function delegates to Cldr.Digits.number_of_digits/1

  • Cldr.Number.String.chunk_string/3 is now Elixir version dependent since in Elixir version 1.7 String.chunk/4 is deprecated in favour of String.chunk_every/4