Floating point is HARD!
Wednesday, 26 November 2003 14:06Co-worker trying to convince me that "0.5 is not exactly representable in [binary] floating-point".
Hello? It's exactly 2-1. Of course it's exactly representable!
Maybe you were thinking of 0.1 or something, which isn't representable exactly in binary. But not 0.5.
A little knowledge is a dangerous thing.