Skip to content

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 20, 2025

This PR contains the following updates:

Package Type Update Change
bigdecimal workspace.dependencies patch 0.4.8 -> 0.4.9

Release Notes

akubera/bigdecimal-rs (bigdecimal)

v0.4.9

Compare Source

Changes

  • Add methods BigDecimal::{powi, powi_with_context} for raising a decimal to a i64 power

    • the powi uses Default Context
  • Add methods BigDecimal::mul_with_context for efficient multiplication to fixed precision

    • uses precision and rounding-mode in the Context
  • Add method BigDecimal::decimal_digit_count, returning number of decimal digits (i.e. precision) of the number

  • Add method BigDecimal::order_of_magnitude, returning position of most significant digit of this decimal

  • Add method BigDecimal::is_one_quickcheck, returning Option<bool> indicating if the value is 1.0 if it can be calculated without allocating, or None if too large

    • Replaced is_one in multiplication methods when used for optimizations
      • Should test if that actually speeds it up
    • Eg value 1.00000000000000000000000000000000000000000 is stored internally as
      [4870020673419870208, 16114848830623546549, 293] E -41 and it's hard to tell this is equivalent to 1
  • Add optimizations to inverse

    • small powers of ten will simply flip their scale 1/10e-5 -> 10e5
    • convert to f64 to make initial guess when before iterative algorithm
  • Add Context::invert(&self, BigDecimalRef), equivalent to BigDecimal::inverse_with_context(&self, &ctx)

    • Still has a bug where rounding ignores sign, affecting floor/ceiling modes

Configuration

📅 Schedule: Branch creation - "before 6am on Monday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot enabled auto-merge (squash) October 20, 2025 04:26
@coveralls
Copy link

Pull Request Test Coverage Report for Build 18642090413

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 4 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.02%) to 67.447%

Files with Coverage Reduction New Missed Lines %
crates/watcher/src/lib.rs 4 87.74%
Totals Coverage Status
Change from base Build 18642070921: -0.02%
Covered Lines: 13026
Relevant Lines: 19313

💛 - Coveralls

@renovate renovate bot merged commit cccfd7e into main Oct 21, 2025
12 checks passed
@renovate renovate bot deleted the renovate/bigdecimal-0.x-lockfile branch October 21, 2025 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant