5 ms·
basically every language with IEEE-754[1] compliance..! [1] - https://en.m.wikipedia.org/wiki/IEEE_754 https://en.m.wikipedia.org/wiki/IEEE_754
by foxhill 8y ago
basically every language with IEEE-754[1] compliance..!
[1] - https://en.m.wikipedia.org/wiki/IEEE_754 https://en.m.wikipedia.org/wiki/IEEE_754
- saagarjha 8y agoBut only when imposing a total ordering.
- bzbarsky 8y agoI'd think that in all those languages, -0 == +0 tests true, though. In JavaScript even -0 === +0 tests true. The only way to tell them apart in general is to divide by them. In some languages you might be able to type-pun and examine the bit pattern, or do things like Object.is() or whatnot.