Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

fpclassify(3m) [opensolaris man page]

fpclassify(3M)						  Mathematical Library Functions					    fpclassify(3M)

NAME
fpclassify - classify real floating type SYNOPSIS
c99 [ flag... ] file... -lm [ library... ] #include <math.h> int fpclassify(real-floating x); DESCRIPTION
The fpclassify() macro classifies its argument value as NaN, infinite, normal, subnormal, or zero. First, an argument represented in a for- mat wider than its semantic type is converted to its semantic type. Then classification is based on the type of the argument. RETURN VALUES
The fpclassify() macro returns the value of the number classification macro appropriate to the value of its argument. ERRORS
No errors are defined. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
isfinite(3M), isinf(3M), isnan(3M), isnormal(3M), math.h(3HEAD), signbit(3M), attributes(5), standards(5) SunOS 5.11 12 Jul 2006 fpclassify(3M)

Check Out this Related Man Page

fpclassify(3M)															    fpclassify(3M)

NAME
fpclassify() - floating-point value classification macro SYNOPSIS
floating-type DESCRIPTION
The macro classifies its argument value as NaN, infinite, normalized, denormalized, or zero. The argument must be of floating type, and classification is based on the type of the argument. For HP Integrity servers, the argument can be any floating type. For PA-RISC, the argument must be either or The macro, used in conjunction with the macro, replaces the and functions, which are obsolete and are no longer supported. USAGE
To use the macro, compile either with the default option or with the and options. Make sure your program includes Link in the math library by specifying on the compiler or linker command line. RETURN VALUE
The macro returns the value of the number classification macro appropriate to the type and value of its argument. The value returned is one of the following macros, which are defined in Every possible argument value falls into one of these categories, so this macro never results in an error. The macro raises no exceptions. ERRORS
No errors are defined. EXAMPLES
Take certain actions if is either a denormalized value or zero: SEE ALSO
isfinite(3M), isinf(3M), isnan(3M), isnormal(3M), signbit(3M), math(5). STANDARDS CONFORMANCE
fpclassify(3M)
Man Page