Skip to content

Conversation

@tompng
Copy link
Member

@tompng tompng commented Oct 28, 2025

Fixes these bugs

BigDecimal.limit 3

BigDecimal(123456789)._decimal_shift(9)
=> 0.123e18 # should be 0.123456789e18

BigDecimal(0.0123456789).frac
=> 0.123e-1 # should be 0.123456789e-1

Suppress rounding in
Fast-path of _decimal_shift: shift is a multiple of BASE_FIG
Fast-path of frac: fix part is zero

@tompng tompng merged commit d35e82b into ruby:master Oct 28, 2025
81 checks passed
@tompng tompng deleted the frac_shift_no_rounding branch October 28, 2025 16:13
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