Given that
0:10
Defines the set of all integer values inclusive of 0 and 10
10 in 0:10 == true
With floating point numbers the range
0.0:10.0
turns out to *not *define the range of all numbers inclusive of 0.0 and
10.0 but the stepped range with step size 1.0
0.5 in 0.0:10.0 == false
implicit in the overload of the : operator is a step of 1.0 so
1.0 in 0.0:10.0 == true
collect( 0.0:10.0)
11-element Array{Float64,1}:
0.0
1.0
2.0
3.0
4.0
5.0
6.0
7.0
8.0
9.0
10.0
I'm assuming this the intended behavior? Is there a continuous Range
available? The following fails
r = 0.0:eps(Float64):10.0
0.4 in r == false