NAN

QNX6.1 appears to have isnan() function, but NAN constant is not defined
anywhere. So even example from isnan() does not compile.

There is _Nan and _Snan in the ymath.h, but they need yet to be casted to
(const double) and even if that is done, isnan() evaluates them both
to -NAN, rather than NAN.

  • igor

Igor Kovalenko <kovalenko@home.com> wrote:

Hi,

QNX6.1 appears to have isnan() function, but NAN constant is not defined
anywhere. So even example from isnan() does not compile.

There is _Nan and _Snan in the ymath.h, but they need yet to be casted to
(const double) and even if that is done, isnan() evaluates them both
to -NAN, rather than NAN.

I’ve submitted a PR, thanks Igor :wink:

Regards,

Marcin

  • igor