Skip to content

Tags: JuliaMath/FixedPointDecimals.jl

Tags

v0.6.3

[Diff since v0.6.2](v0.6.2...v0.6.3)

-     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

[Diff since v0.6.1](v0.6.1...v0.6.2)

- `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

[Diff since v0.6.0](v0.6.0...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

[Diff since v0.5.6](v0.5.6...v0.6.0)

- 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

[Diff since v0.5.5](v0.5.5...v0.5.6)

**Merged pull requests:**
- Add div_with_overflow (#106) (@mbarbar)

v0.5.5

[Diff since v0.5.4](v0.5.4...v0.5.5)

**Merged pull requests:**
- Make `Aqua.test_all(FixedPointDecimal)` pass (#104) (@kuszmaul)

v0.5.4

[Diff since v0.5.3](v0.5.3...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

[Diff since v0.5.2](v0.5.2...v0.5.3)

- 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

[Diff since v0.5.1](v0.5.1...v0.5.2)

**Merged pull requests:**
- Fix bug in previous PR for comparisons that underflow (large negatives) (#89) (@NHDaly)

v0.5.1

[Diff since v0.5.0](v0.5.0...v0.5.1)