Chapter Contents

Previous

Next
isnormal

isnormal



Test for normal floating-point number

Portability: C99


SYNOPSIS
DESCRIPTION
RETURN VALUE
USAGE NOTES
RELATED FUNCTIONS
SEE ALSO


SYNOPSIS

   #include <math.h>

   int isnormal(floating x);


DESCRIPTION

isnormal tests whether its argument is a normal floating-point number, that is, not zero, not infinite, not denormalized, and not a NaN.


RETURN VALUE

isnormal returns zero if its argument is a normal floating-point number, and a non-zero value otherwise.


USAGE NOTES

When called from a compilation compiled without the bfp option, isnormal always returns zero for a zero argument and non-zero otherwise.


RELATED FUNCTIONS

fpclassify, isfinite, isinf, isnan


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.