xref: /csrg-svn/lib/libc/gen/isinf.3 (revision 65943)
161111Sbostic.\" Copyright (c) 1991, 1993
261111Sbostic.\"	The Regents of the University of California.  All rights reserved.
347561Sbostic.\"
447561Sbostic.\" %sccs.include.redist.man%
547561Sbostic.\"
6*65943Smckusick.\"     @(#)isinf.3	8.2 (Berkeley) 01/29/94
747561Sbostic.\"
848376Scael.Dd
948376Scael.Dt ISINF 3
1048376Scael.Os
1148376Scael.Sh NAME
1248376Scael.Nm isinf ,
1348376Scael.Nm isnan
14*65943Smckusick.Nd test for infinity or not-a-number
1548376Scael.Sh SYNOPSIS
1648376Scael.Ft int
1748376Scael.Fn isinf double
1848376Scael.Ft int
1948376Scael.Fn isnan double
2048376Scael.Sh DESCRIPTION
2148376ScaelThe
2248376Scael.Fn isninf
2348376Scaelfunction
2448376Scaelreturns 1 if the number is
2548376Scael.Dq \\*(If ,
2648376Scaelotherwise 0.
2748376Scael.Pp
2848376ScaelThe
2948376Scael.Fn isnan
3048376Scaelfunction
3148376Scaelreturns 1 if the number is
32*65943Smckusick.Dq not-a-number ,
3348376Scaelotherwise 0.
3448376Scael.Sh SEE ALSO
3548376Scael.Xr math 3
3648376Scael.Rs
3748376Scael.%T "IEEE Standard for Binary Floating-Point Arithmetic"
3848376Scael.%Q ANSI
3948376Scael.%R Std 754-1985
4048376Scael.Re
4148376Scael.Sh BUGS
4248376ScaelNeither the
4348376Scael.Tn VAX
4448376Scaelnor the Tahoe floating point have distinguished values
4547561Sbosticfor either infinity or not-a-number.
4647561SbosticThese routines always return 0 on those architectures.
47