Skip to content
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 bug when error is infinite #46436

Merged

Conversation

oscardssmith
Copy link
Member

Previously I had assumed that the error terms were strictly smaller than the result (which is true), but the error terms can never the less be infinite, and because of the order in which things are computed (having to do with fma) the error term was sometimes choosing the sign of the infinity which is bad.

@oscardssmith oscardssmith added maths Mathematical functions bugfix This change fixes an existing bug backport 1.8 Change should be backported to release-1.8 labels Aug 22, 2022
@oscardssmith
Copy link
Member Author

merge?

@KristofferC KristofferC merged commit c491e79 into JuliaLang:master Aug 26, 2022
KristofferC pushed a commit that referenced this pull request Aug 26, 2022
@oscardssmith oscardssmith deleted the fix-Float64-to-Int-edge-case branch August 26, 2022 11:44
KristofferC pushed a commit that referenced this pull request Aug 26, 2022
@KristofferC KristofferC removed the backport 1.8 Change should be backported to release-1.8 label Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This change fixes an existing bug maths Mathematical functions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants