Quantcast
Channel: Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1616

NaN bugs

$
0
0

I'm having some unexpected behaviour from NaN's when swithing to the Intel C++ compiler.

#include <math.h> int main() { // Comparing two NaNs should result in a False if (NAN == NAN) return -1; return 0; }

Comparing two NaNs should result in a False but results in a True. Any ideas what's up with this?


Viewing all articles
Browse latest Browse all 1616

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>