We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On current ruby 3.1:
>> BigDecimal::VERSION => "3.1.0-dev" >> BigDecimal(-10000000000000000000) (irb):2:in `BigDecimal': bignum too big to convert into `long' (RangeError)
On 3.0:
>> BigDecimal::VERSION => "3.0.0" >> BigDecimal(-10000000000000000000) => -0.1e20
The text was updated successfully, but these errors were encountered:
Actually, it seems that the trigger is Ruby 3.1 and not the latest bigdecimal version. I'll try to track this down.
Sorry, something went wrong.
Ok, so the problem is in 4792a91
When dealing with signed integers, comparing rb_absint_size to sizeof long is no longer correct.
rb_absint_size
sizeof long
cc @mrkn
@casperisfine Thank you for reporting and investigating this!
Thanks for the merge!
Successfully merging a pull request may close this issue.
On current ruby 3.1:
On 3.0:
The text was updated successfully, but these errors were encountered: