-
Notifications
You must be signed in to change notification settings - Fork 32
Closed
Description
julia> x = Double64(-0.0)
-0.0
julia> y = zero(x)
0.0
julia> x <= y
false
This stems from using === instead of == here:
DoubleFloats.jl/src/type/compare.jl
Lines 17 to 19 in 172c17e
| @inline function (<=)(x::DoubleFloat{T}, y::DoubleFloat{T}) where {T<:IEEEFloat} | |
| return (HI(x) < HI(y)) || (HI(x) === HI(y) && LO(x) <= LO(y)) | |
| end |
However, I'm not familiar enough with the delicate issues this package must deal with to feel confident that merely changing it to == is correct.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels