KEMBAR78
Comparing v3.2.3...v3.3.0 · ruby/bigdecimal · GitHub
Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ruby/bigdecimal
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.2.3
Choose a base ref
...
head repository: ruby/bigdecimal
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.3.0
Choose a head ref
  • 19 commits
  • 12 files changed
  • 6 contributors

Commits on Sep 9, 2025

  1. Allow calling Rational#to_d without arguments (#421)

    Then the precision would be 0, just like with Float.
    
    Apply the same change to Complex, which had a different validation
    fsateler authored Sep 9, 2025
    Configuration menu
    Copy the full SHA
    d9af278 View commit details
    Browse the repository at this point in the history
  2. Fix test_no_memory_leak failure (#424)

    Avoid memory leak when TypedData_Wrap_Struct fail.
    First, prepare TypedData_Wrap_Struct with NULL.
    Next, allocate Real.
    Finally, bind VALUE and Real.
    tompng authored Sep 9, 2025
    Configuration menu
    Copy the full SHA
    021c554 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2025

  1. Configuration menu
    Copy the full SHA
    514d36c View commit details
    Browse the repository at this point in the history
  2. Faster exp calculation (#399)

    Use exp(x) = exp(x.round(k)) * exp(x - x.round(k)).
    exp(x.round(k)) is fast because calculation of x**n is fast.
    exp(x-x.round(k) is fast because x**n/n! converges fast.
    tompng authored Sep 11, 2025
    Configuration menu
    Copy the full SHA
    69d7641 View commit details
    Browse the repository at this point in the history
  3. Rename assert_relative_precision (#425)

    Now that assert_fixed_point_precision is removed and there is only assert_relative_precision,
    "relative" part is not important anymore. Change it to `assert_converge_in_precision` which express the assertion more accurate.
    tompng authored Sep 11, 2025
    Configuration menu
    Copy the full SHA
    23144a7 View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2025

  1. Add support for tangent function (#231)

    * Add support for tangent function
    
    * Apply review comments for tests
    
    * Make tan depend only on sin
    
    * Use Ziv's loop method suggested in review
    
    * Test failing test
    
    * Use first implementation based on sin and cos
    
    * Remove unused code
    rhannequin authored Sep 12, 2025
    Configuration menu
    Copy the full SHA
    cebd1a5 View commit details
    Browse the repository at this point in the history
  2. Make bigdecimal.rb work in JRuby (#420)

    Use BigDecimal(float, 0) instead of BigDecimal(float).
    Add a ruby-implemented polyfill of BigDecimal#_decimal_shift.
    This is needed to let math.rb depend on bigdecimal.rb utility methods.
    tompng authored Sep 12, 2025
    Configuration menu
    Copy the full SHA
    92a9d7e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2066c20 View commit details
    Browse the repository at this point in the history
  4. Round result of sqrt and BigMath methods (#427)

    * Round result of sqrt and other BigMath methods
    
    BigMath methods no longer returns extra digits which may be inaccurate
    
    * Remove workaround for removing extra digits from sqrt result in log calculation
    tompng authored Sep 12, 2025
    Configuration menu
    Copy the full SHA
    44a2bb6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    07696bc View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2025

  1. Configuration menu
    Copy the full SHA
    34e60a7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8ca3249 View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2025

  1. Bump step-security/harden-runner from 2.13.0 to 2.13.1

    Bumps [step-security/harden-runner](https://github.com/step-security/harden-runner) from 2.13.0 to 2.13.1.
    - [Release notes](https://github.com/step-security/harden-runner/releases)
    - [Commits](step-security/harden-runner@ec9f2d5...f4a75cf)
    
    ---
    updated-dependencies:
    - dependency-name: step-security/harden-runner
      dependency-version: 2.13.1
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Sep 15, 2025
    Configuration menu
    Copy the full SHA
    6682fd8 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #431 from ruby/dependabot/github_actions/step-secu…

    …rity/harden-runner-2.13.1
    
    Bump step-security/harden-runner from 2.13.0 to 2.13.1
    olleolleolle authored Sep 15, 2025
    Configuration menu
    Copy the full SHA
    f107735 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d93b542 View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2025

  1. Add newline at EOF [ci skip]

    nobu committed Oct 3, 2025
    Configuration menu
    Copy the full SHA
    cb2458b View commit details
    Browse the repository at this point in the history

Commits on Oct 6, 2025

  1. Improve performance of x**y when y is a huge value (#438)

    When y.exponent is several thousand or more, x**y was slow because exponentiation by squaring requires several thousands of multiplications.
    Use exp and log in such case.
    Needed to calaculate (1+1/n).power(n, prec)
    tompng authored Oct 6, 2025
    Configuration menu
    Copy the full SHA
    a267ca7 View commit details
    Browse the repository at this point in the history

Commits on Oct 7, 2025

  1. Configuration menu
    Copy the full SHA
    f718178 View commit details
    Browse the repository at this point in the history
  2. Bump version to 3.3.0 (#437)

    * Update changelog for v3.3.0
    
    * Bump version to 3.3.0
    tompng authored Oct 7, 2025
    Configuration menu
    Copy the full SHA
    0aa97bb View commit details
    Browse the repository at this point in the history
Loading