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.
no subject
Date: Wednesday, 26 November 2003 09:27 (UTC)no subject
Date: Wednesday, 26 November 2003 09:53 (UTC)(I think it doesn't work in the bio, though.)
no subject
Date: Wednesday, 26 November 2003 09:57 (UTC)