Releases: elixir-cldr/cldr_numbers
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
Cldr_Numbers version 1.1.0
Cldr_Numbers v1.1.0 released on December 22nd, 2017.
For older changelogs please consult the release tag on [GitHub] (https://github.com/kipcole9/cldr_numbers/tags)
Bug fixes
- Fixes a bug whereby an exception would be raised if a number format was specified as a
:spellout
or:ordinal
but the locale doesn't support them
Enhancements
-
Support RBNF formats for
Decimal
numbers that are integers (ie where the exponent is zero) since these are equivalent to their integer counterparts.Decimals
where theexp
is not zero remain unsupported since the underlying rules engine only knows how to work onnumbers
(integer or float) and it would not be appropriate to convert to a float due to the loss of precision and the fact that the numbers would not round trip. -
Changed the exception name
Cldr.NoRbnf
to a more meaninfulCldr.Rbnf.NoRule
Cldr Numbers version 1.0.1
Enhancements
-
Refactor
Cldr.Currency.new/2
to simplify struct building (thanks to @Schultzer) -
Add additional specs and correct some for better documentation and improved dialyzer support (thanks to @Schultzer)
-
Add additional doctests for
Cldr.Currency.new/2
Cldr Numbers version 1.0
Cldr v1.0.0 released on December 9th, 2017.
For older changelogs please consult the release tag on GitHub
Breaking Changes
- The modules
Cldr.Currency
,Cldr.Number.System
andCldr.Number.Format
now consistently returns an{:ok, result}
tuple rather than just theresult
Enhancements
- Update to ex_cldr version 1.0
Cldr_numbers release candidate 0
Cldr_Numbers v1.0.0-rc.0
This version signals API stability and the first release candidate.
Breaking Changes
- The modules
Cldr.Currency
,Cldr.Number.System
,Cldr.Number.Symbol
andCldr.Number.Format
now consistently returns an{:ok, result}
tuple rather than just theresult
Enhancements
- Update to ex_cldr version 1.0.0-rc.0