You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 10, 2023. It is now read-only.
I thought <= might have been inferred from < and == but apparently, that's not the case:
julia> a =Double(1.0);
julia> b =Double(2);
julia> a < b
true
julia> a == b
false
julia> a ≤ b
ERROR:<= not defined for DoubleDouble.Double{Float64}
Stacktrace:
[1] <=(::DoubleDouble.Double{Float64}, ::DoubleDouble.Double{Float64}) at ./promotion.jl:351
It seems to be a matter of
julia>import Base.≤
julia>≤{T}(x::Double{T}, y::Double{T}) = x < y || x == y
<= (generic function with 58 methods)
The text was updated successfully, but these errors were encountered:
dpo
added a commit
to dpo/DoubleDouble.jl
that referenced
this issue
Jul 22, 2017
I thought
<=
might have been inferred from<
and==
but apparently, that's not the case:It seems to be a matter of
The text was updated successfully, but these errors were encountered: