1 .TH FPCLASSIFY 3 "December 18, 2009"
4 fpclassify, isfinite, isinf, isnan, isnormal, signbit \- classify floating point numbers
10 int fpclassify(double \fIx\fP):
11 int isfinite(double \fIx\fP);
12 int isinf(double \fIx\fP);
13 int isnan(double \fIx\fP);
14 int isnormal(double \fIx\fP);
15 int signbit(double \fIx\fP);
18 These functions provide information about the specified floating point number
19 \fIx\fP. fpclassify returns one of the values FP_INFINITE, FP_NAN, FP_NORMAL,
20 FP_SUBNORMAL and FP_ZERO depending on the type of number provided. The isinf,
21 isinf, isnan and isnormal test for specific number classes, returning a
22 non-zero value is and only if the specified number belongs to the class
23 specified by the function name. The signbit function returns a non-zero value
24 if and only if the sign bit is set, which for non-NaN values (including zero)
25 means that the number is negative.