Check floats for .nan

Janice Caron caron800 at googlemail.com
Sun Oct 7 15:08:12 PDT 2007


On 10/7/07, BCS <ao at pathlink.com> wrote:
> If you want to test for nan use "testedValue !<>= 0"

Are we really sure about that?

If testedValue is complex (with non-zero real part) then it will not
be less than 0, it will not be greater than zero, and it will not be
equal to zero. But it will also not be NaN.



More information about the Digitalmars-d mailing list