3 ms·
There's the obvious warning that one shall not compare floating point numbers for equality... But then, it's indeed quite surprizing. It get worse on pure tang
by marcosdumay 13y ago
There's the obvious warning that one shall not compare floating point numbers for equality...
But then, it's indeed quite surprizing. It get worse on pure tanguages where the expressions (0 / 0) and (0 / 0) are equal before evaluation, but different afterwards. Also, it trashes hash tables.
Yet, NANs being different is the sanest mathematical definition. Maybe people should have opted for the ugliest choice because of real world concerns (it wouldn't be the first time), but this time, they didn't.