InexactError in Range

julia> f == typemin(Int)
true

This is an implementation issue, unfortunately, where the length of the range is assumed to be an Int, but it can’t be rounded to an Int accurately.

julia> start = f
-9.223372036854776e18

julia> stop = 0.0
0.0

julia> step = 1.0
1.0

julia> lf = (stop-start)/step
9.223372036854776e18

julia> lf > typemax(Int)
true
1 Like