Releases: JuliaMath/FixedPointDecimals.jl
Releases · JuliaMath/FixedPointDecimals.jl
v0.6.3
FixedPointDecimals v0.6.3
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:
v0.6.2
FixedPointDecimals v0.6.2
New Library Functions
fld_with_overflow(x::FD, y::FD)::Tuple{FD,Bool}
: Likefld
, but returns true on overflowrdiv_with_overflow(x::FD, y::FD)::Tuple{FD,Bool}
: Like/
, but returns true on overflow
Merged pull requests:
v0.6.1
FixedPointDecimals v0.6.1
Merged pull requests:
- Fix world age warnings from accessing binding before definiton (#108) (@nickrobinson251)
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
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:
v0.5.6
FixedPointDecimals v0.5.6
Merged pull requests:
v0.5.5
FixedPointDecimals v0.5.5
Merged pull requests:
v0.5.4
FixedPointDecimals v0.5.4
Merged pull requests:
- enable dependabot for GitHub actions (#79) (@ranocha)
- Bump codecov/codecov-action from 1 to 5 (#96) (@dependabot[bot])
- Bump actions/checkout from 2 to 4 (#98) (@dependabot[bot])
- Bump julia-actions/setup-julia from 1 to 2 (#99) (@dependabot[bot])
- Use
julia-actions/cache
(#101) (@omus) - Add with_overflow for add, sub, and mul (#102) (@mbarbar)
- 0.5.4: *_with_overflow for add, sub, mul (#103) (@NHDaly)
v0.5.3
v0.5.2
FixedPointDecimals v0.5.2
Merged pull requests: