How to test if float is NaN?
Lionello Lunesu
lio at lunesu.remove.com
Fri May 19 07:26:23 PDT 2006
Don Clugston wrote:
> Lionello Lunesu wrote:
>> Since by definition a NaN is not equal to anything, including itself,
>> I suppose it's a compiler bug?
>
> Definitely. I've seen that sort of behaviour before in VC++.
> <cynic> Does anyone at Microsoft understand floating point arithmetic?
> </cynic>
I must mention that I have the unstable floating point optimizations
turned on, /fp:fast.. I'll have to try the default before trashing the
VC team ;)
L.
More information about the Digitalmars-d-learn
mailing list