I add 100 and then subtract 100 and I get -0. How to not get a negative zero

It’s because you are using a float. You should round to a decimal place and clamp to 0.0 or use int if you can make it work with whole numbers.

3 Likes