Skip to content

Instantly share code, notes, and snippets.

@zaki50
Created March 1, 2013 06:30
Show Gist options
  • Save zaki50/5062831 to your computer and use it in GitHub Desktop.
Save zaki50/5062831 to your computer and use it in GitHub Desktop.
NAN == NAN is false
#include <stdio.h>
#include <math.h>
int
main(int argc, char* argv[])
{
printf("%s\n", NAN == NAN ? "true" : "false");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment