Jun-29-2018, 07:28 PM
I would expect this is a floating point error, where 29.5 - 0.1 is not sufficiently different from 29.4. That doesn't mean it's different math, it just means that different numbers with different floating point approximations are going to trip this off. As always, if you need to be certain use integers and divide, like your third example.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures