-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorrangesEverything AbstractRangeEverything AbstractRange
Description
1e40 ∈ 0:1.0This errors instead of returning false
ERROR: InexactError: trunc(Int64, 1.0e40)
Stacktrace:
[1] trunc
@ ./float.jl:781 [inlined]
[2] trunc
@ ./float.jl:354 [inlined]
[3] round
@ ./float.jl:359 [inlined]
[4] _in_range(x::Float64, r::StepRangeLen{Float64, Base.TwicePrecision{Float64}, Base.TwicePrecision{Float64}, Int64})
@ Base ./range.jl:1396
[5] in(x::Float64, r::StepRangeLen{Float64, Base.TwicePrecision{Float64}, Base.TwicePrecision{Float64}, Int64})
@ Base ./range.jl:1400
[6] top-level scope
@ REPL[21]:1
DilumAluthge
Metadata
Metadata
Assignees
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorrangesEverything AbstractRangeEverything AbstractRange