Which is the first integer that an IEEE 754 float is incapable of representing exactly?
For clarity, if I’m using a language that implements IEE 754 floats and I declare: float f0 = 0.f; float f1 = 1.f; …and then print them back out, I’ll get 0.0000 and 1.0000 – exactly. But IEEE 754 isn’t capable of representing all the numbers along the real line. Close to zero, the ‘gaps’ … Read more