Releases: elixir-cldr/cldr_numbers
Cldr Numbers version 2.33.3
Cldr Numbers version 2.33.1
Bug Fixes
- Add
config/prod.exs
soMIX_ENV=prod
compilation succeeds. Thanks to @camelpunch for the report. Closes #49.
Cldr Numbers version 2.33.0
Enhancements
-
Update to CLDR 45.0 data.
-
Support currency formatting when the given currency in a given locale uses a specific symbol that replaces the decimal separator. The only known example is the Cape Verde escudo. A formatted example formatting 20 CVE is
20$00
.
Cldr Numbers version 2.32.4
Bug Fixes
- Fix formatting a number when a currency is specified but the format has no currency symbol. Closes ex_money 162.
Cldr Numbers version 2.32.3
Bug Fixes
-
Fix compiler warnings on Elixir 1.16.
-
Fix return spec for
Cldr.Number.to_string/2
. Thanks to @Munksgaard for the PR. Closes #45.
Cldr Numbers version 2.32.2
Bug Fixes
- Fixes RBNF rules for fractions. Previous the rule
:spellout_cardinal
was being used to format the fractional part of a number. However this rule is not defined for many locales. This is changed to:spellout_numbering
which is available in all known locales.
Cldr Numbers version 2.32.1
Bug Fixes
- Use currency default fractional digits for currency formats if no
:fractional_digits
option is provided. Thanks to @dhedlund for the report. This reverts that change made in 2.31.3 which was described as "Don't override currency fractional digits when formatting a number. The format should always define the fractional digits unless overriden by the:fractional_digits
option." Fractional digits will also be set to the currency definition of digits unless overriden.
Cldr Numbers version 2.32.0
Bug Fixes
-
Fix formatting numbers with format
:standard
when the standard format is an RBNF rule. -
Fix formatting numbers with an RBNF format that is defined on locale
:und
even when the formatting locale doesn't have an:rbnf_locale_name
. -
Improve several error messages around number systems and RBNF rules.
Deprecations
Cldr.Number.System.systems_with_digits/0
is deprecated in favour ofCldr.Number.System.numeric_systems/0
.
Enhancements
-
Adds
Cldr.Number.System.algorithmic_systems/0
which is the counterpoint toCldr.Number.System.numeric_systems/0
. -
Functions in the
Cldr.Number.Format
module now default thebackend
argument to beCldr.default_backend!/0
.
Cldr Numbers version 2.31.3
Bug Fixes
-
Support
format: :scientific
which is documented but was not implemented as a valid option. Thanks to @petrus-jvrensburg for the report. Closes #38. -
Don't override currency fractional digits when formatting a number. The format should always define the fractional digits unless overriden by the
:fractional_digits
option.
Cldr Numbers version 2.31.2
Bug Fixes
- Fixes formatting of numbers in locales where the locale has no RBNF. Thanks to @petrus-jvrensburg for the report. Closes #37.