-
Notifications
You must be signed in to change notification settings - Fork 146
properly handle decimal exponents #1125
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
properly handle decimal exponents #1125
Conversation
3d99032 to
082effa
Compare
billylanchantin
left a comment
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.
I implemented it with claude code.
Thanks for the clarity! We definitely want developers to let us know when they do this. We should probably write up a policy...
ead3a33 to
29ef928
Compare
c4080f5 to
a53c8b2
Compare
a53c8b2 to
67efdae
Compare
billylanchantin
left a comment
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, @dkuku! Great work!
I appreciate you tackling that issue :)
I took a try on the decimal exponent handling. This is the result:
1.5e10) by multiplying the coefficient during conversionchecked_multo reject values that don't fit in i128Tests cover mixed exponent arithmetic and overflow cases.
closes #1123
I implemented it with claude code. The max precision for decimal is 38 according to the docs because internally it is backed by i128.