lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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