I hope to get a simple decimal range by numpy.arange . But, my code outputs unexpected result and size. My snippet shown below.
len(arange(0.60,0.70,0.01))
it returns size 10 ndarray object
array([0.60, ... ,0.69])
And, the max value is changed
len(arange(0.60,0.80,0.01))
array([0.60, ... , 0.79, 0.80])
I expected it will also return size 20 one.
array([0.60, ... , 0.79])
But, the size is 21 and 0.80 is included.
Could you explain Why is this? and What is the difference between two ranges?
Python : 3.5.2
numpy : 1.10.1