1*48376Scael.\" Copyright (c) 1991, 1991 The Regents of the University of California. 247561Sbostic.\" All rights reserved. 347561Sbostic.\" 447561Sbostic.\" %sccs.include.redist.man% 547561Sbostic.\" 6*48376Scael.\" @(#)isinf.3 5.2 (Berkeley) 04/20/91 747561Sbostic.\" 8*48376Scael.Dd 9*48376Scael.Dt ISINF 3 10*48376Scael.Os 11*48376Scael.Sh NAME 12*48376Scael.Nm isinf , 13*48376Scael.Nm isnan 14*48376Scael.Nd test for infinity or not-a-number (\*(Na) 15*48376Scael.Sh SYNOPSIS 16*48376Scael.Ft int 17*48376Scael.Fn isinf double 18*48376Scael.Ft int 19*48376Scael.Fn isnan double 20*48376Scael.Sh DESCRIPTION 21*48376ScaelThe 22*48376Scael.Fn isninf 23*48376Scaelfunction 24*48376Scaelreturns 1 if the number is 25*48376Scael.Dq \\*(If , 26*48376Scaelotherwise 0. 27*48376Scael.Pp 28*48376ScaelThe 29*48376Scael.Fn isnan 30*48376Scaelfunction 31*48376Scaelreturns 1 if the number is 32*48376Scael.Dq \\*(Na , 33*48376Scaelotherwise 0. 34*48376Scael.Sh SEE ALSO 35*48376Scael.Xr math 3 36*48376Scael.Rs 37*48376Scael.%T "IEEE Standard for Binary Floating-Point Arithmetic" 38*48376Scael.%Q ANSI 39*48376Scael.%R Std 754-1985 40*48376Scael.Re 41*48376Scael.Sh BUGS 42*48376ScaelNeither the 43*48376Scael.Tn VAX 44*48376Scaelnor the Tahoe floating point have distinguished values 4547561Sbosticfor either infinity or not-a-number. 4647561SbosticThese routines always return 0 on those architectures. 47