xref: /original-bsd/lib/libc/gen/isinf.3 (revision 6884d44a)
Copyright (c) 1991 The Regents of the University of California.
All rights reserved.

%sccs.include.redist.man%

@(#)isinf.3 5.1 (Berkeley) 03/18/91

ISINF 3 ""
C 7
NAME
isinf, isnan - return if infinity or not-a-number
SYNOPSIS
int isinf(double);
int isnan(double);
.fr R
DESCRIPTION
Isninf returns 1 if the number is ``infinity'', otherwise 0.

Isnan returns 1 if the number is ``NaN'', otherwise 0.

SEE ALSO
math (3) "IEEE Standard for Binary Floating-Point Arithmetic" , ANSI/IEEE Std 754-1985
BUGS
Neither the VAX nor the Tahoe floating point have distinguished values for either infinity or not-a-number. These routines always return 0 on those architectures.