Enhancements
Decimal.new/2now accepts an optionaloptskeyword list and
forwards it toDecimal.parse/2, allowing callers to override
:max_digitsand:max_exponentwhen constructing a decimal from
a string.
Bug fixes
- Fix infinite loop in
Decimal.to_integer/1when the coefficient is
zero and the exponent is negative (e.g.Decimal.new("0.0")). Such
values now correctly convert to the integer0.