[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: 5.1 and vc6
- From: Wim Couwenberg <w.couwenberg@...>
- Date: Sat, 05 Mar 2005 12:01:16 +0100
Another thing, related to the recent NaN discussion: the runtime libs of
vc6 are broken in the sense that x ~= x is *false* for x a NaN. In fact
x == y is *true* if either one of x or y is NaN. vc7 fixed this bug.
In vc6 there is an _isnan function available in float.h or you could do
something like
if x == 1 and x == 2 then ... -- x is NaN
--
Wim