Skip to content

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 16, 2023

Mend Renovate

This PR contains the following updates:

Package Type Update Change
bigdecimal dependencies patch =0.4.1 -> =0.4.2

Release Notes

akubera/bigdecimal-rs (bigdecimal)

v0.4.2

Compare Source

Changes

  • Add Context struct

    • For user-controlled precision and rounding
    • Support for a few BigDecimal functions added (eg: sqrt_with_context(&self, ctx: &Context)) , more to come in future versions.
    • Note standard operations use default (compile-time-defined) context
  • Add BigDecimalRef struct

    • Non-owning BigDecimal struct that has some non-digit-changing methods (i.e. change sign/scale without copying digits) for more efficient calculations
    • Implements math operations Add,Sub
    • Implement From<&BigInt> for BigDecimalRef
  • Compile-time default rounding mode may be set by environment variable RUST_BIGDECIMAL_DEFAULT_ROUNDING_MODE

  • Fix issue recompiling if RUST_BIGDECIMAL_DEFAULT_PRECISION haddn't changed

  • Add BigDecimal::with_precision_round()

    • trim the bigdecimal after operations, rounding at given point
  • Add BigDecimal::fractional_digit_count()

    • Return's the bigdecimal's "scale", (number of digits right of the decimal point)
  • Support reading subnormal floating-point numbers

  • Improve initial "guess" in calculation of inverted value.

  • Fix panic in from_str_radix (#​115)

  • (internal) Reorganize std::ops implementations by moving each to separate functions (src/impl_ops_add.rs, src/impl_ops_sub.rs, etc)

Performance Improvements
  • BigDecimal::eq takes into account trailing zeros, avoids aligning digits
  • (internal) ten_to_the - used everywhere to align BigIntegers within BigDecimals, all operations with high precision numbers should be faster

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 has been generated by Mend Renovate. View repository job log here.

@Turbo87
Copy link
Member

Turbo87 commented Oct 16, 2023

hmm... a changelog would be nice... seems like quite a lot of random changes for a patch release :-/

@Turbo87
Copy link
Member

Turbo87 commented Oct 17, 2023

changelog has been updated :)

@Turbo87 Turbo87 merged commit 1607579 into main Oct 17, 2023
@Turbo87 Turbo87 deleted the renovate/bigdecimal-0.x branch October 17, 2023 06:25
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