Skip to content

Conversation

@tompng
Copy link
Member

@tompng tompng commented Dec 16, 2025

BigDecimal#precs (was deprecated in v3.0.0) is removed
Return value of BigDecimal#divmod changed from [BigDecimal, BigDecimal](bug) to [Integer, BigDecimal] just like Float#divmod and Rational#divmod.

@tompng tompng merged commit 8bb046b into ruby:master Dec 16, 2025
13 checks passed
@tompng tompng deleted the fix_for_bigdecimal_v4 branch December 16, 2025 19:15
require_relative '../../spec_helper'
require 'bigdecimal'

describe "BigDecimal#precs" do
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better to wrap in version_is BigDecimal::VERSION, ""..."4.0.0" do so it's still tested on older bigdecimal versions / on older Ruby versions.

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.

2 participants