v0.6.0
FixedPointDecimals v0.6.0
Breaking Changes
- The checked operations
Base.Checked.add_with_overflow
,mul_with_overflow
, etc no longer promote their arguments.- This is because overflow may occur during promotion and conversion itself.
- So you are expected to handle promotion on your own (where you can also check for overflow before converting), and then you can call these checked operators.
- If you were relying on this type of operation before, it is no longer defined, and you will get a MethodError:
Base.Checked.add_with_overflow(FixedDecimal{Int8,2}(0.0), 1)
- This is to avoid the following scenario:
julia> Base.Checked.add_with_overflow(FixedDecimal{Int8,2}(0.0), 2) ERROR: InexactError: convert(FixedDecimal{Int8, 2}, 2)
Merged pull requests: