Chapter Contents

Previous

Next
isnan

isnan



Test for floating-point NaN

Portability: C99


SYNOPSIS
DESCRIPTION
RETURN VALUE
USAGE NOTES
RELATED FUNCTIONS
SEE ALSO


SYNOPSIS

   #include <math.h>

   int isnan(floating x);


DESCRIPTION

isnan tests whether its argument is a NaN.


RETURN VALUE

isnan returns zero if its argument is not a NaN, and a non-zero value otherwise.


USAGE NOTES

When called from a compilation compiled without the bfp option, isnan always returns zero.


RELATED FUNCTIONS

fpclassify, isfinite, isinf, isnormal


SEE ALSO

"Mathematical Functions" in Chapter 2, "Function Categories"


Chapter Contents

Previous

Next

Top of Page

Copyright © 2004 by SAS Institute Inc., Cary, NC, USA. All rights reserved.