3 ms·
Actually NaN != NaN is not a language design, it is required for complying with the IEEE 754 standard.
by rbonvall 15y ago
Actually NaN != NaN is not a language design, it is required for complying with the IEEE 754 standard.
- tomp 15y agoThat's still language design... Personally, I would make NaN == NaN in a language I would design, and provide a Float.equals function that would follow the IEEE standard.