Skip to content

Fix VpNumOfChars calculation for the longest case#366

Merged
tompng merged 1 commit into
ruby:masterfrom
tompng:numofchar_fix
Jul 10, 2025
Merged

Fix VpNumOfChars calculation for the longest case#366
tompng merged 1 commit into
ruby:masterfrom
tompng:numofchar_fix

Conversation

@tompng

@tompng tompng commented Jul 9, 2025

Copy link
Copy Markdown
Member

Fix this bug

x = BigDecimal('-0.123456789e-1000000000000000008')
x.exponent
#=> -1000000000000000008

x.to_s
# => "-0.123456789e-100000000000000000" (master branch)
# => "-0.123456789e-1000000000000000008" (this pull request)

@tompng tompng merged commit 1fa512f into ruby:master Jul 10, 2025
78 checks passed
@tompng tompng deleted the numofchar_fix branch July 10, 2025 13:53
@tompng tompng added the bug label Jul 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant