isnand, isnanf, finite, fpclass, unordered - determine type of floating-point number
#include <ieeefp.h> int isnand(double dsrc);
int isnanf(float fsrc);
int finite(double dsrc);
fpclass_t fpclass(double dsrc);
int unordered(double dsrc1, double dsrc2);
The isnand() and isnanf() functions return TRUE (1) if the argument dsrc or fsrc is a NaN; otherwise they return FALSE (0).
The fpclass() function returns one of the following classes to which dsrc belongs:
FP_SNAN
FP_QNAN
FP_NINF
FP_PINF
FP_NDENORM
FP_PDENORM
FP_NZERO
FP_PZERO
FP_NNORM
FP_PNORM
The finite() function returns TRUE (1) if the argument dsrc is neither infinity nor NaN; otherwise it returns FALSE (0).
The unordered() function returns TRUE (1) if one of its two arguments is unordered with respect to the other argument. This is equivalent to reporting whether either argument is NaN. If neither argument is NaN, FALSE (0) is returned.
None of these functions generates an exception, even for signaling NaNs.
See attributes(5) for descriptions of the following attributes:
|
fpgetround(3C), isnan(3M), attributes(5)
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |