vm: use assert() instead of vm_assert(); remove vm_assert().
[minix.git] / man / man3 / fpclassify.3
blob9f1fd3f05274af113a1505326d58fc3720a4876d
1 .TH FPCLASSIFY 3  "December 18, 2009"
2 .UC 4
3 .SH NAME
4 fpclassify, isfinite, isinf, isnan, isnormal, signbit \- classify floating point numbers
5 .SH SYNOPSIS
6 .nf
7 .ft B
8 #include <math.h>
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);
16 .fi
17 .SH DESCRIPTION
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.