Math isn't substracting correctly

image
image
I don’t even know how to describe it, nor why is this happening…

computers can’t be too accurate

idk how to explain it but this is normal behavior

This is due to quirks with floating-point values as opposed to fixed-point values.

Computers are just dumb sometimes.

If you do 0.1 + 0.2 it will return 0.30000000000000004

Something about how computers handle floats.

Also this is normal in every programming language.

this isnt a huge issue, i just posted this becouse it gave me a “HUH” moment

Im gonna round this up anyways…