Chapter Contents

Previous

Next
fpclassify

fpclassify



Classify floating-point number

Portability: C99


SYNOPSIS
DESCRIPTION
RETURN VALUE
USAGE NOTES
RELATED FUNCTIONS
SEE ALSO


SYNOPSIS

   #include <math.h>

   int fpclassify(floating x);


DESCRIPTION

fpclassify determines the class of numbers to which its argument belongs. The argument may be of any floating point type.


RETURN VALUE

fpclassify returns one of the values FP_ZERO, FP_INFINITE, FP_NORMAL, FP_SUBNORMAL, or FP_NAN to indicate a zero, infinite, normal, subnormal (or denormalized), or invalid (NaN) value.


USAGE NOTES

When called from a function compiled without the bfp option, fpclassify will always return either FP_ZERO or FP_NORMAL.


RELATED FUNCTIONS

isfinite, isinf, isnan, 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.