-
-
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
fix rounding edge cases on cld
, fld
, and rem
#45910
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.
Thanks!
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.
This feels like two separate PRs, one fixes cld
and the other is whitespace.
Thanks, I've rebased the PR so that one commit denotes the actual fix and the second one contains whitespace, style & docstring modifications: I don't think splitting this into two PRs is needed. |
80857c9
to
e6360e2
Compare
ad3fdcc
to
6b5afd0
Compare
Co-authored-by: Lilith Orion Hafner <60898866+LilithHafner@users.noreply.github.com>
Co-authored-by: Lilith Orion Hafner <60898866+LilithHafner@users.noreply.github.com>
Pending CI, this looks good to me. Do you think it is ready to merge? |
I keep re-triggering CI, but unrelated spurious failures keep showing up :/.
Yes. |
The CI failure seems unrelated to me. Thanks for your contribution! It's nice to see |
Also, improve operator spacing and docstring formatting
Also, improve operator spacing and docstring formatting
cld
behaviour #45875;cc @eschnett for removal of
cld
def introduced in #8111.Two tests marked broken before are now passing at
julia/test/numbers.jl
Line 2554 in f4801ff
One test had its sign modified (
0.0
->-0.0
):isequal(rem(nextfloat(typemin(T)), T(2), RoundUp), -0.0)
.