2 ms·
> You may also then be surprised that 1.0f - .000000001f gives the same result: 1.0f No, that anything but surprising. But the fact that some floats are exac
by ur-whale 4y ago
> You may also then be surprised that 1.0f - .000000001f gives the same result: 1.0f
No, that anything but surprising.
But the fact that some floats are exactly 1.0f away from their floor, is not only surprising, it's super annoying.
- furyofantares 4y agoYou're not surprised that 1.0f is exactly 1.0f away from .000000001f, but you are surprised that -1.0f is exactly 1.0f away from -.000000001f?
- Someone 4y ago> But the fact that some floats are exactly 1.0f away from their floor Why do you think that computation produces an exact result? I would think it doesn’t.