Skip to content

Commit

Permalink
UPD added a TODO annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
cnaak committed Sep 8, 2020
1 parent 2b97baa commit ae5dad4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/intervals/conversion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ end
function atomic(::Type{Interval{T}}, x::S) where {T<:AbstractFloat, S<:AbstractFloat}
isinf(x) && return wideinterval(T(x))

# TODO: Delegate type assertion to the type system
xrat = T == BigFloat ? rationalize(BigInt, x) : rationalize(x) # Issue #410

# This prevents that xrat returns a 0//1 when x is very small
Expand Down

0 comments on commit ae5dad4

Please sign in to comment.