I'm using NumPy's arange() method and trying to figure why my value, which is seemingly in range, does not return True when applied.
3.0 in np.arange(3, 3.9, .01)
Returns True which is expected. However, the following returns false:
3.2 in np.arange(3, 3.9, .01)
I also verified the values the np.arange() expression generates. The IDE showed 3.2000 as a valid value, adding the trailing zeros did not change the result.. In addition, the following expression returns True, which again I expect:
1.7 in np.arange(0, 3, .01)