Math isn't substracting correctly

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

2 Likes

computers can’t be too accurate

idk how to explain it but this is normal behavior

2 Likes

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

3 Likes

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.

1 Like

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

Im gonna round this up anyways…

2 Likes