fpclassify(3) Library Functions Manual fpclassify(3) fpclassify, isfinite, isnormal, isnan, isinf - LIBRARY Math library (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 || /* Since glibc 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE isinf(): _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L || /* 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(), isfinite(), | | MT-Safe | |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) Azamat Hackimov , Dmitry Bolkhovskikh , Yuri Kozlov ; GNU 3 , . . , , . Linux man-pages 6.06 31 2023 . fpclassify(3)