Skip to content

Releases: JuliaMath/FixedPointDecimals.jl

v0.6.3

20 Feb 04:27
f45fb68
Compare
Choose a tag to compare

FixedPointDecimals v0.6.3

Diff since v0.6.2

New Library functions

  • FixedPointDecimals.floor_with_overflow(x::FD)::Tuple{FD,Bool}
    
  • FixedPointDecimals.ceil_with_overflow(x::FD)::Tuple{FD,Bool}
    
  • FixedPointDecimals.round_with_overflow(x::FD, [rounding_mode])::Tuple{FD,Bool}
    

Merged pull requests:

  • Remove one of the redundant round definitions; add test coverage (#113) (@NHDaly)
  • Add round_/ceil_/floor_with_overflow (#114) (@mbarbar)
  • Add missing docstring for round_with_overflow (#115) (@NHDaly)

v0.6.2

17 Feb 17:58
515934e
Compare
Choose a tag to compare

FixedPointDecimals v0.6.2

Diff since v0.6.1

New Library Functions

  • fld_with_overflow(x::FD, y::FD)::Tuple{FD,Bool}: Like fld, but returns true on overflow
  • rdiv_with_overflow(x::FD, y::FD)::Tuple{FD,Bool}: Like /, but returns true on overflow

Merged pull requests:

  • Add rdiv_with_overflow and fld_with_overflow (#109) (@mbarbar)
  • Better handle different backing types (#111) (@mbarbar)

v0.6.1

31 Jan 23:23
0b5d756
Compare
Choose a tag to compare

FixedPointDecimals v0.6.1

Diff since v0.6.0

Merged pull requests:

Closed issues:

  • Warnings in Julia v1.12.0-DEV Detected access to binding in a world prior to its definition world (#107)

v0.6.0

29 Jan 20:43
ca7f8ce
Compare
Choose a tag to compare

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)

v0.5.6

28 Jan 17:52
cdd6966
Compare
Choose a tag to compare

FixedPointDecimals v0.5.6

Diff since v0.5.5

Merged pull requests:

v0.5.5

23 Jan 16:12
20c21c5
Compare
Choose a tag to compare

FixedPointDecimals v0.5.5

Diff since v0.5.4

Merged pull requests:

v0.5.4

17 Jan 17:34
e36a42f
Compare
Choose a tag to compare

FixedPointDecimals v0.5.4

Diff since v0.5.3

Merged pull requests:

v0.5.3

12 Aug 18:09
e0c1932
Compare
Choose a tag to compare

FixedPointDecimals v0.5.3

Diff since v0.5.2

  • Performance improvements for FixedDecimal{Int128} and FixedDecimal{UInt128} (PR: #93)

Merged pull requests:

  • Use Int256 to reduce BigInts in FD operations. (#93) (@NHDaly)

Closed issues:

  • Create tag for 0.3.1 (#66)

v0.5.2

20 Dec 22:35
ddee978
Compare
Choose a tag to compare

FixedPointDecimals v0.5.2

Diff since v0.5.1

Merged pull requests:

  • Fix bug in previous PR for comparisons that underflow (large negatives) (#89) (@NHDaly)

v0.5.1

19 Dec 22:49
507185c
Compare
Choose a tag to compare

FixedPointDecimals v0.5.1

Diff since v0.5.0