All Versions
12
Latest Version
Avg Release Cycle
155 days
Latest Release
2099 days ago
Changelog History
Page 1
Changelog History
Page 1
-
v2.0.0 Changes
September 08, 2020Decimal v2.0 requires Elixir v1.2+.
โจ Enhancements
- โ Add
Decimal.integer?/1
๐ฅ Breaking changes
- ๐ Change
Decimal.compare/2to return:lt | :eq | :gt - ๐ Change
Decimal.cast/1to return{:ok, t} | :error - ๐ Change
Decimal.parse/1to return{t, binary} | :error - โ Remove
:messageand:resultfields fromDecimal.Error - โ Remove sNaN
- ๐ Rename qNaN to NaN
- โ Remove deprecated support for floats in
Decimal.new/1 - โ Remove deprecated
Decimal.minus/1 - โ Remove deprecated
Decimal.plus/1 - โ Remove deprecated
Decimal.reduce/1 - Remove deprecated
Decimal.with_context/2,Decimal.get_context/1,Decimal.set_context/1, andDecimal.update_context/1 - โ Remove deprecated
Decimal.decimal?/1
๐ Deprecations
- ๐ Deprecate
Decimal.cmp/2
- โ Add
-
v2.0.0-rc.0 Changes
January 21, 2020Decimal v2.0 requires Elixir v1.2+.
๐ฅ Breaking changes
- ๐ Change
Decimal.compare/2to return:lt | :eq | :gt - ๐ Change
Decimal.cast/1to return{:ok, t} | :error - ๐ Change
Decimal.parse/1to return{t, binary} | :error - โ Remove
:messageand:resultfields fromDecimal.Error - โ Remove sNaN
- ๐ Rename qNaN to NaN
- โ Remove deprecated support for floats in
Decimal.new/1 - โ Remove deprecated
Decimal.minus/1 - โ Remove deprecated
Decimal.plus/1 - โ Remove deprecated
Decimal.reduce/1 - Remove deprecated
Decimal.with_context/2,Decimal.get_context/1,Decimal.set_context/1, andDecimal.update_context/1 - โ Remove deprecated
Decimal.decimal?/1
๐ Deprecations
- ๐ Deprecate
Decimal.cmp/2
- ๐ Change
-
v1.9.0 Changes
September 08, 2020โจ Enhancements
- โ Add
Decimal.negate/1 - โ Add
Decimal.apply_context/1 - โ Add
Decimal.normalize/1 - โ Add
Decimal.Context.with/2,Decimal.Context.get/1,Decimal.Context.set/2,
โก๏ธ andDecimal.Context.update/1 - โ Add
Decimal.is_decimal/1
๐ Deprecations
- ๐ Deprecate
Decimal.minus/1in favour of the newDecimal.negate/1 - ๐ Deprecate
Decimal.plus/1in favour of the newDecimal.apply_context/1 - ๐ Deprecate
Decimal.reduce/1in favour of the newDecimal.normalize/1 - Deprecate
Decimal.with_context/2,Decimal.get_context/1,Decimal.set_context/2,
โก๏ธ andDecimal.update_context/1in favour of new functions on theDecimal.Contextmodule - ๐ Deprecate
Decimal.decimal?/1in favour of the newDecimal.is_decimal/1
- โ Add
-
v1.9.0-rc.0 Changes
January 07, 2020โจ Enhancements
- โ Add
Decimal.negate/1 - โ Add
Decimal.apply_context/1 - โ Add
Decimal.normalize/1 - โ Add
Decimal.Context.with/2,Decimal.Context.get/1,Decimal.Context.set/2,
โก๏ธ andDecimal.Context.update/1 - โ Add
Decimal.is_decimal/1
๐ Deprecations
- ๐ Deprecate
Decimal.minus/1in favour of the newDecimal.negate/1 - ๐ Deprecate
Decimal.plus/1in favour of the newDecimal.apply_context/1 - ๐ Deprecate
Decimal.reduce/1in favour of the newDecimal.normalize/1 - Deprecate
Decimal.with_context/2,Decimal.get_context/1,Decimal.set_context/2,
โก๏ธ andDecimal.update_context/1in favour of new functions on theDecimal.Contextmodule - ๐ Deprecate
Decimal.decimal?/1in favour of the newDecimal.is_decimal/1
- โ Add
-
v1.8.1 Changes
December 20, 2019๐ Bug fixes
- ๐ Fix Decimal.compare/2 with string arguments
- ๐ฆ Set :signal on error
-
v1.8.0 Changes
June 24, 2019โจ Enhancements
- โ Add
Decimal.cast/1 - โ Add
Decimal.eq?/2,Decimal.gt?/2, andDecimal.lt?/2 - โ Add guards to
Decimal.new/3to prevent invalid Decimal numbers
- โ Add
-
v1.7.0 Changes
February 16, 2019โจ Enhancements
- โ Add
Decimal.sqrt/1
- โ Add
-
v1.6.0 Changes
November 22, 2018โจ Enhancements
- ๐ Support for canonical XSD representation on
Decimal.to_string/2
๐ Bugfixes
- ๐ Fix exponent off-by-one when converting from decimal to float
- ๐ Fix negative?/1 and positive?/1 specs
๐ Deprecations
- ๐ Deprecate passing float to
Decimal.new/1in favor ofDecimal.from_float/1
- ๐ Support for canonical XSD representation on
-
v1.5.0 Changes
March 24, 2018โจ Enhancements
- โ Add
Decimal.positive?/1andDecimal.negative?/1 - Accept integers and strings in arithmetic functions, e.g.:
Decimal.add(1, "2.0") - โ Add
Decimal.from_float/1
๐ Soft deprecations (no warnings emitted)
- ๐ Soft deprecate passing float to
new/1in favor offrom_float/1
- โ Add
-
v1.4.1 Changes
October 12, 2017๐ Bugfixes
- Include the given value as part of the error reason
- ๐ Fix
:half_even:lists.lastbug (empty signif) - ๐ Fix error message for round
- ๐ Fix
:half_downrounding error when remainder is greater than 5 - ๐ Fix
Decimal.new/1float conversion with bigger precision than 4 - ๐ Fix precision default value