.125 + .375 == .5
You should be using == for floats when they're actually equal. 0.1 just isn't an actual number.
> 0.1 just isn't an actual number.
A finitist computer scientists only accepts those numbers as real that can be expressed exactly in finite base-two floating point?
Are you saying that my students should memorize which numbers are actual floats and which are not?