Commit | Line | Data |
---|---|---|
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 | |
11 | isinf, isnan \- return if infinity or not-a-number | |
12 | .SH SYNOPSIS | |
13 | .nf | |
14 | .ft B | |
15 | int isinf(double); | |
16 | int isnan(double); | |
17 | .fr R | |
18 | .fi | |
19 | .SH DESCRIPTION | |
20 | .I Isninf | |
21 | returns 1 if the number is ``infinity'', otherwise 0. | |
22 | .PP | |
23 | .I Isnan | |
24 | returns 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" , | |
29 | ANSI/IEEE Std 754-1985 | |
30 | .SH BUGS | |
31 | Neither the VAX nor the Tahoe floating point have distinguished values | |
32 | for either infinity or not-a-number. | |
33 | These routines always return 0 on those architectures. |