Skip to content

v3.1.0

Latest

Choose a tag to compare

@ericmj ericmj released this 08 May 17:37

Enhancements

  • Decimal.new/2 now accepts an optional opts keyword list and
    forwards it to Decimal.parse/2, allowing callers to override
    :max_digits and :max_exponent when constructing a decimal from
    a string.

Bug fixes

  • Fix infinite loop in Decimal.to_integer/1 when the coefficient is
    zero and the exponent is negative (e.g. Decimal.new("0.0")). Such
    values now correctly convert to the integer 0.