Arbitrary precision decimal arithmetic
APACHE-2.0 License
Decimal v2.0 requires Elixir v1.2+.
Decimal.integer?/1
Decimal.compare/2
to return :lt | :eq | :gt
Decimal.cast/1
to return {:ok, t} | :error
Decimal.parse/1
to return {t, binary} | :error
:message
and :result
fields from Decimal.Error
Decimal.new/1
Decimal.minus/1
Decimal.plus/1
Decimal.reduce/1
Decimal.with_context/2
, Decimal.get_context/1
, Decimal.set_context/1
,Decimal.update_context/1
Decimal.decimal?/1
Published by wojtekmach about 4 years ago
Decimal.negate/1
Decimal.apply_context/1
Decimal.normalize/1
Decimal.Context.with/2
, Decimal.Context.get/1
, Decimal.Context.set/2
,Decimal.Context.update/1
Decimal.is_decimal/1
Decimal.minus/1
in favour of the new Decimal.negate/1
Decimal.plus/1
in favour of the new Decimal.apply_context/1
Decimal.reduce/1
in favour of the new Decimal.normalize/1
Decimal.with_context/2
, Decimal.get_context/1
, Decimal.set_context/2
,Decimal.update_context/1
in favour of new functions on the Decimal.Context
moduleDecimal.decimal?/1
in favour of the new Decimal.is_decimal/1
Decimal v2.0 requires Elixir v1.2+.
Decimal.compare/2
to return :lt | :eq | :gt
Decimal.cast/1
to return {:ok, t} | :error
Decimal.parse/1
to return {t, binary} | :error
:message
and :result
fields from Decimal.Error
Decimal.new/1
Decimal.minus/1
Decimal.plus/1
Decimal.reduce/1
Decimal.with_context/2
, Decimal.get_context/1
, Decimal.set_context/1
,Decimal.update_context/1
Decimal.cmp/2
Decimal.negate/1
Decimal.apply_context/1
Decimal.normalize/1
Decimal.Context.with/2
, Decimal.Context.get/1
, Decimal.Context.set/2
,Decimal.Context.update/1
Decimal.is_decimal/1
Decimal.minus/1
in favour of the new Decimal.negate/1
Decimal.plus/1
in favour of the new Decimal.apply_context/1
Decimal.reduce/1
in favour of the new Decimal.normalize/1
Decimal.with_context/2
, Decimal.get_context/1
, Decimal.set_context/2
,Decimal.update_context/1
in favour of new functions on the Decimal.Context
moduleDecimal.decimal?/1
in favour of the new Decimal.is_decimal/1
Published by ericmj over 10 years ago
Published by ericmj over 10 years ago
Published by ericmj over 10 years ago
Published by ericmj over 10 years ago
Published by ericmj over 10 years ago
Published by ericmj over 10 years ago
First release!