summaryrefslogtreecommitdiffstats
path: root/man3/isinf.3
blob: b0e2b7146d2303d40ef1ef2ff1e6987afb2d6435 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
.\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
.\" May be distributed under the GNU General Public License
.\" References consulted:
.\"     Linux libc source code
.\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
.\"     386BSD man pages
.\" Modified Sat Jul 24 19:07:26 1993 by Rik Faith (faith@cs.unc.edu)
.TH ISINF 3  "June 2, 1993" "GNU" "Linux Programmer's Manual"
.SH NAME
isinf, isnan, finite \- test for infinity or not-a-number (NaN)
.SH SYNOPSIS
.nf
.B #include <math.h>
.sp
.BI "int isinf(double " value );
.sp
.BI "int isnan(double " value );
.sp
.BI "int finite(double " value );
.fi
.SH DESCRIPTION
The \fBisinf()\fP function returns -1 if \fIvalue\fP represents negative
infinity, 1 if \fIvalue\fP represents positive infinity, and 0 otherwise.
.PP
The \fBisnan()\fP function returns a non-zero value if \fIvalue\fP is
"not-a-number" (NaN), and 0 otherwise.
.PP
The \fBfinite()\fP function returns a non-zero value if \fIvalue\fP is
finite or is not a "not-a-number" (NaN) value, and 0 otherwise.
.SH "CONFORMING TO"
BSD 4.3