-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Broken integer rounding for big(Inf)
#44662
Comments
Also:
I think it is due to mpfr.jl#L280 calling
Is |
Presumably we should look at the erange flag after the operation and raise an appropriate error. |
It seems that the logic is already there for |
The other method doesn't quite work for BigInt, because
but yes, add the same logic for checking the erange flag. |
It also fixes `round(Integer, big(NaN))`. Solves JuliaLang#44662
Solved by #44676 (I just messed up the "fixes" keyword in the PR message) |
The text was updated successfully, but these errors were encountered: