We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
atomic
1 parent d473f78 commit 99c27c0Copy full SHA for 99c27c0
src/intervals/construction.jl
@@ -211,7 +211,6 @@ Otherwise it is the same as using the `Interval` constructor directly.
211
atomic(::Type{Interval{T}}, x) where {T<:NumTypes} = interval(T, x)
212
atomic(::Type{Interval{T}}, x::AbstractString) where {T<:NumTypes} = parse(Interval{T}, x)
213
214
-atomic(::Type{Interval{T}}, x::AbstractFloat) where {T<:Rational} = Interval{T}(lo, hi)
215
function atomic(::Type{Interval{T}}, x::AbstractFloat) where {T<:AbstractFloat}
216
lo = T(x, RoundDown)
217
hi = T(x, RoundUp)
0 commit comments