2 ms·
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 tha
by klodolph 14y ago
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.
- malkia 14y ago0/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