I have been chasing an error for a long time. I have finally tracked it down to this:
a = 3*np.arange(0.5,1.6,0.1)
b = 3*np.array([0.5,1,1.5])
for c in a:
print(c in b)
I would expect 3 of the elements of a
to appear in b
but when I execute the code above I only get that one of them is in b
. Is anyone able to explain whats going on here?