Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ isinf(3) — SunOS 1.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

ISINF(3)  —  SUBROUTINES

NAME

isinf, isnan − test for indeterminate floating point values

SYNOPSIS

int isinf(value)
double value;

int isnan(value)
double value;

DESCRIPTION

Isinf returns a value of 1 if its value is an IEEE format infinity (two words 0x7ff00000 0x00000000) or an IEEE negative infinity, and returns a zero otherwise. 

Isnan returns a value of 1 if its value is an IEEE format ‘not-a-number’ (two words 0x7ffnnnnn0xnnnnnnnn) where n is not zero) or its negative, and returns a zero otherwise. 

Some library routines such as ecvt(3) do not handle indeterminate floating point values gracefully. Prospective arguments to such routines should be checked with isinf or isnan before calling these routines. 

BUGS

Need a manual section describing the format of IEEE numbers in detail. 

Sun Release 1.1  —  Last change: 23 August 1983

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026