macro and text revision (-mdoc version 3)
[unix-history] / usr / src / lib / libc / gen / isinf.3
CommitLineData
26c1d2b2
KB
1.\" Copyright (c) 1991 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" %sccs.include.redist.man%
5.\"
6.\" @(#)isinf.3 5.1 (Berkeley) %G%
7.\"
8.TH ISINF 3 ""
9.UC 7
10.SH NAME
11isinf, isnan \- return if infinity or not-a-number
12.SH SYNOPSIS
13.nf
14.ft B
15int isinf(double);
16int isnan(double);
17.fr R
18.fi
19.SH DESCRIPTION
20.I Isninf
21returns 1 if the number is ``infinity'', otherwise 0.
22.PP
23.I Isnan
24returns 1 if the number is ``NaN'', otherwise 0.
25.SH SEE ALSO
26.IR math (3)
27.sp
28.IR "IEEE Standard for Binary Floating-Point Arithmetic" ,
29ANSI/IEEE Std 754-1985
30.SH BUGS
31Neither the VAX nor the Tahoe floating point have distinguished values
32for either infinity or not-a-number.
33These routines always return 0 on those architectures.