News for hackers. Stuff that matters.
Re:NaNs Just Don't Get No Respect by klodolph on Saturday August 18, 2012 @01:02AM (#4400297)
I've gotten a bit pissed at the Microsoft C compiler for (1) having no standard way to generate NaN or Infinity and (2) having a good enough static analyzer that if you generate one by casting, it emits a warning saying that your arithmetic overflows.

Gee, thanks MSC. I didn't expect "x = INFINITY;" to overflow.

Re:NaNs Just Don't Get No Respect by malkia on Saturday August 18, 2012 @01:45AM (#4400357)
0/0 should be NaN, 1/0 should be +Infinity, -1/0 should be -Infinity. (I haven't tried that in a while).

Also check the flags, like /fp:precise for MSVC