FPCLASSIFY 3CW "09 March 2006" "mathcw-1.00"

Table of contents


NAME

fpclassifyf, fpclassify, fpclassifyl, fpclassifyw, fpclassifyq, fpclassifyll, fpclassifydf, fpclassifyd, fpclassifydl, fpclassifydll - classify floating-point number

SYNOPSIS

cc [ flags ] -I/usr/local/include file(s) -L/usr/local/lib -lmcw [ ... ]

#include <mathcw.h>

extern int fpclassifyf (float x);

extern int fpclassify (double x);

extern int fpclassifyl (long double x);

extern int fpclassifyw (__float80 x);

extern int fpclassifyq (__float128 x);

extern int fpclassifyll (long_long_double x);

extern int fpclassifydf (decimal_float x);

extern int fpclassifyd (decimal_double x);

extern int fpclassifydl (decimal_long_double x);

extern int fpclassifydll (decimal_long_long_double x);

NB: Functions with prototypes containing underscores in type names may be available only with certain extended compilers.


DESCRIPTION

Classify the argument as NaN, infinite, normal, subnormal, or zero.

RETURN VALUES

Return one of FP_INFINITE, FP_NAN, FP_NORMAL, FP_SUBNORMAL, or FP_ZERO.

ERRORS

None.

SEE ALSO

isinf(3CW), isnan(3CW), isnormal(3CW), issubnormal(3CW).