Search:

FPCLASSIFY(3) DragonFly Library Functions Manual FPCLASSIFY(3)## NAME

fpclassify,isfinite,isinf,isnan,isnormal-- classify a floating-point number## LIBRARY

Math Library (libm, -lm)## SYNOPSIS

#include<math.h>intfpclassify(real-floatingx);intisfinite(real-floatingx);intisinf(real-floatingx);intisnan(real-floatingx);intisnormal(real-floatingx);## DESCRIPTION

Thefpclassify() macro takes an argument ofxand returns one of the fol- lowing manifest constants. FP_INFINITE Indicates thatxis an infinite number. FP_NAN Indicates thatxis not a number (NaN). FP_NORMAL Indicates thatxis a normalized number. FP_SUBNORMAL Indicates thatxis a denormalized number. FP_ZERO Indicates thatxis zero (0 or -0). Theisfinite() macro returns a non-zero value if and only if its argument has a finite (zero, subnormal, or normal) value. Theisinf(),isnan(), andisnormal() macros return non-zero if and only ifxis an infinity, NaN, or a non-zero normalized number, respectively. The symbolisnanf() is provided as an alias toisnan() for compatibility, and its use is deprecated. Similarly,finite() andfinitef() are depre- cated versions ofisfinite().## SEE ALSO

isgreater(3), math(3), signbit(3)## STANDARDS

Thefpclassify(),isfinite(),isinf(),isnan(), andisnormal() macros conform to ISO/IEC 9899:1999 (``ISO C99'').## HISTORY

Thefpclassify(),isfinite(),isinf(),isnan(), andisnormal() macros were added in DragonFly 1.3. 3BSD introducedisinf() andisnan() func- tions, which accepteddoublearguments; these have been superseded by the macros described above. DragonFly 5.1 January 26, 2005 DragonFly 5.1

Search: