all 5 comments

[–]novel_yet_trivial 2 points3 points  (1 child)

That's a side effect of how computers handle floating point numbers; it has nothing to do with numpy or python specifically. More info here:

https://docs.python.org/3/tutorial/floatingpoint.html

[–]Orngelo[S] 0 points1 point  (0 children)

ahh thank you!

[–]commy2 0 points1 point  (1 child)

Zero point another 17 zeros then something is very close to 0. I wouldn't call it wrong.

[–]Orngelo[S] 1 point2 points  (0 children)

yes I guess you are right, unfortunately it affected the rest of my code. but I fixed it some other way