decimal v2.0.0 Release Notes
Release Date: 2020-09-08 // about 4 years ago-
Decimal v2.0 requires Elixir v1.2+.
โจ Enhancements
- โ Add
Decimal.integer?/1
๐ฅ Breaking changes
- ๐ Change
Decimal.compare/2
to return:lt | :eq | :gt
- ๐ Change
Decimal.cast/1
to return{:ok, t} | :error
- ๐ Change
Decimal.parse/1
to return{t, binary} | :error
- โ Remove
:message
and:result
fields 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
Previous changes from v2.0.0-rc.0
-
Decimal v2.0 requires Elixir v1.2+.
๐ฅ Breaking changes
- ๐ Change
Decimal.compare/2
to return:lt | :eq | :gt
- ๐ Change
Decimal.cast/1
to return{:ok, t} | :error
- ๐ Change
Decimal.parse/1
to return{t, binary} | :error
- โ Remove
:message
and:result
fields 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