fpclassify(3) Library Functions Manual fpclassify(3) fpclassify, isfinite, isnormal, isnan, isinf - (libm -lm) #include int fpclassify(x); int isfinite(x); int isnormal(x); int isnan(x); int isinf(x); glibc ( feature_test_macros(7)): fpclassify(), isfinite(), isnormal(): _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L isnan(): _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE || /* glibc 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE isinf(): _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L || /* Since glibc 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE NaN. fpclassify(x) x. . : FP_NAN x " ". FP_INFINITE x . FP_ZERO x . FP_SUBNORMAL x . FP_NORMAL . . isfinite(x) (fpclassify(x) != FP_NAN && fpclassify(x) != FP_INFINITE) isnormal(x) (fpclassify(x) == FP_NORMAL) isnan(x) (fpclassify(x) == FP_NAN) isinf(x) 1 x -1 x . attributes(7). +------------+------------------------------------+--------------------+ || | | +------------+------------------------------------+--------------------+ |fpclassify(),| | MT-Safe | |isfinite(), | | | |isnormal(), | | | |isnan(), | | | |isinf() | | | +------------+------------------------------------+--------------------+ C11, POSIX.1-2008. POSIX.1-2001 C99. glibc 2.01 isinf() ( : 1) x . ( C99.) isinf() . finite(3), INFINITY(3), isgreater(3), signbit(3) 3 . . : . 6.18 8 2026 fpclassify(3)