Skip to content

Conversation

@devmotion
Copy link
Member

Fixes the incorrect comparison in #790 involving NaN. With this PR:

julia> xs = Dual(0.0,NaN)
Dual{Nothing}(0.0,NaN)

julia> xs < 0
false

julia> xs > 0
false

julia> isless(xs, 0)
false

julia> isless(0, xs)
true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants