Skip to content

Releases: ericmj/decimal

v2.0.0

08 Sep 14:33
Compare
Choose a tag to compare

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 from Decimal.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,
    and Decimal.update_context/1
  • Remove deprecated Decimal.decimal?/1

v1.9.0

08 Sep 14:32
Compare
Choose a tag to compare

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,
    and Decimal.Context.update/1
  • Add Decimal.is_decimal/1

Deprecations

  • Deprecate Decimal.minus/1 in favour of the new Decimal.negate/1
  • Deprecate Decimal.plus/1 in favour of the new Decimal.apply_context/1
  • Deprecate Decimal.reduce/1 in favour of the new Decimal.normalize/1
  • Deprecate Decimal.with_context/2, Decimal.get_context/1, Decimal.set_context/2,
    and Decimal.update_context/1 in favour of new functions on the Decimal.Context module
  • Deprecate Decimal.decimal?/1 in favour of the new Decimal.is_decimal/1

v2.0.0-rc.0

21 Jan 09:43
Compare
Choose a tag to compare
v2.0.0-rc.0 Pre-release
Pre-release

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 from Decimal.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,
    and Decimal.update_context/1
  • Remove deprecated `Decimal.decimal?/1

Deprecations

  • Deprecate Decimal.cmp/2

v1.9.0-rc.0

21 Jan 09:43
3ae184e
Compare
Choose a tag to compare
v1.9.0-rc.0 Pre-release
Pre-release

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,
    and Decimal.Context.update/1
  • Add Decimal.is_decimal/1

Deprecations

  • Deprecate Decimal.minus/1 in favour of the new Decimal.negate/1
  • Deprecate Decimal.plus/1 in favour of the new Decimal.apply_context/1
  • Deprecate Decimal.reduce/1 in favour of the new Decimal.normalize/1
  • Deprecate Decimal.with_context/2, Decimal.get_context/1, Decimal.set_context/2,
    and Decimal.update_context/1 in favour of new functions on the Decimal.Context module
  • Deprecate Decimal.decimal?/1 in favour of the new Decimal.is_decimal/1

v0.2.2

18 Jun 21:11
Compare
Choose a tag to compare
Release v0.2.2

v0.2.1

24 May 12:19
Compare
Choose a tag to compare
Bump to v0.2.1

v0.2.0

01 May 18:30
Compare
Choose a tag to compare
Release v0.2.0

v0.1.2

21 Apr 23:49
Compare
Choose a tag to compare
0.13.1 changes are backwards compatible

v0.1.1

21 Apr 23:48
Compare
Choose a tag to compare
Release 0.1.1

v0.1.0

25 Feb 10:31
Compare
Choose a tag to compare

First release!