So I was doing some work with some oddly specific numbers, and found this:
While the simple:
print(0.15 - 0.15)
equals '0', this:
print(0.15000000596046 - 0.15)
equals '5.9604600144425e-09' for some reason. It is messing up my script, and driving me crazy. Any ideas?

5 comments
That's how computers work. The further away from 0, the less accurate.
The outcome of the second equation is correct. It's called scientific notation.
use math.floor() or math.ceil() math.floor rounds the number down and math.ceil rounds the number up
Do you want to know how to disable e-notation?
I already asked that question, search questions simular to yours before asking