Skip to content

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 19, 2025

This PR contains the following updates:

Package Type Update Change
bigdecimal 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 - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant