(C) 1998 AROS - The Amiga Research OS


NAME
#include <math.h>

int isnan ()

SYNOPSIS
double val

FUNCTION
Check if val is a valid double.

INPUTS
val
Check this.

RESULT
TRUE is val is not a number (NaN) or FALSE if it is a valid number.

EXAMPLE
// If this wouldn't crash, then it would print
// "a doesn't contain a valid number".
a = 1.0;
a /= 0.0;

if (isnan(a))
    printf ("a doesn't contain a valid number\n");
else
    printf ("a contains a valid number\n");
SEE ALSO
abs(), fabs()

NOTES

BUGS

INTERNALS

HISTORY
20.10.1998 hkiel
Amiga Research OS
20.05.1997 aros
Added a couple of floating point math functions from fdlibm by Sun.