-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
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
Fix rounding mantissa overflow #541
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for finding this bug and issuing a fix!
I think this looks good - I have a couple of nits that it'd be good to address first (for my own future sanity reasons!).
One additional thing I think should perhaps be added to this: could you add a couple more benchmarks for these edge cases? I don't think it should make much of a difference, however it'd good to be a little more certain about this. The explicit benchmark we'd want to check is decimal_from_str
.
fixes #540