Are you saying that my students should memorize which numbers are actual floats and which are not?
> 1.25 * 0.1
0.1250000000000000069388939039 > 1.25 * 0.1
0.1250000000000000069388939039Yes.
1.25 = 2^0 + 2^-2, so is representable.
0.125 = 2^-3, so is representable
1.25 / 10.0 = 0.125 so is representable. 10.0 = 2^3 + 2^1.
1.25 * 0.1 is not representable, because 0.1 is not representable, and those low order bits show up in the multiplication