-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
math/big: incorrect string->Float conversion or printing for literals with large exponent #11341
Comments
Once this is fixed, re-investigate issue #11326. |
The error occurs in the On line 130 we call
and there's no input checking for +Inf values. Unfortunately When The fix is simple: if the
correctly gives
The fix also uncovered two wrong test. In the first one (floatconv_test.go, line 370)
the expected value (with exponent Another test
proves that negative exponents too are mis-handled. In fact, I've sent a patch. |
CL https://golang.org/cl/13778 mentions this issue. |
prints x = 1e+151 which is incorrect.
The text was updated successfully, but these errors were encountered: