isinf(3M)isinf(3M)NAMEisinf() - floating-point test for infinity
The macro determines whether its argument is an infinity. 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 float‐
ing type. For PA-RISC, the argument must be either or
The macro replaces the and functions, which are obsolete and are no
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.
The macro returns a nonzero value if x is Otherwise, it returns zero.
The macro raises no floating-point exceptions.
No errors are defined.
Take certain actions if is infinity:
SEE ALSOfpclassify(3M), isfinite(3M), isnan(3M), isnormal(3M), signbit(3M),