3 ms·
I think I found a bug: If you set all bits to 0 except the sign bit you get 0 when you should get -0. In IEEE floating point representation 0 and -0 is not the
by quelsolaar 7y ago
I think I found a bug: If you set all bits to 0 except the sign bit you get 0 when you should get -0. In IEEE floating point representation 0 and -0 is not the same. This is why:
f *= 0;
Is not the same operation as:
f = 0;
Since the former will retain the sign bit.
- tboerstad 7y agoThanks for that bit of information, pun intended. I hope I'll never have to rely on it in production.