Skip to content

v0.6.0

Compare
Choose a tag to compare
@github-actions github-actions released this 29 Jan 20:43
· 2 commits to master since this release
ca7f8ce

FixedPointDecimals v0.6.0

Diff since v0.5.6

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:

  • Remove promoting with_overflow overloads (#105) (@mbarbar)