isnan(3) Library Functions Manual isnan(3)Name
isnan - test for NaN
Syntax
#include <math.h>
int isnan (x)
double x;
Description
The function returns 1 if x is NaN (the IEEE floating point reserved not-a-number value) and zero otherwise. On VAX, the return value is
always zero.
isnan(3)
Check Out this Related Man Page
isnan(3M) Mathematical Library Functions isnan(3M)NAME
isnan - test for NaN
SYNOPSIS
C90 Mode
cc [ flag... ] file... -lm [ library... ]
#include <math.h>
int isnan(double x);
C99 Mode
#include <math.h>
int isnan(real--floating x);
DESCRIPTION
In C90 mode, the isnan() function tests whether x is NaN.
In C99 mode, the isnan() macro determines whether its argument value is NaN. First, an argument represented in a format wider than its
semantic type is converted to its semantic type. The determination is then based on the type of the argument.
RETURN VALUES
Both the isnan() function and macro return non-zero if and only if x is NaN.
ERRORS
No errors are defined.
WARNINGS
In C99 mode, the practice of explicitly supplying a prototype for isnan() after the line
#include <math.h>
is obsolete and will no longer work.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO fpclassify(3M), isfinite(3M), isinf(3M), isnormal(3M), math.h(3HEAD), signbit(3M), attributes(5), standards(5)SunOS 5.10 1 Dec 2003 isnan(3M)
I want to build a little website on a Sun Blade 100 running Solaris 10.
I just went out to apache.org and downloaded Unix Source: httpd-2.2.8.tar.gz
After unpacking the tarball, I CD'd into the subdirectory and ran the configure utility. Of course, it crapped out. I see that it is... (17 Replies)
Hello,
I would like to understand this... I'm using ksh and doing
(( z = y - 1 ))
if y=34, then the result for z is 33, but if y=034 the result is z=27. Why??
Thanks (15 Replies)
I am using getopt_long to pass arguments to a C++ program. Arguments are passed with a key and a value separated by a space of '=' sign. Some options do not need to assign a value to them.
Example:
./raytrac dist=0.3 --color
I have some classes that need to use some of these... (18 Replies)
I have a few input values on a form that must be in 0.25 steps, how do I force this ? alternatively how do I automatically enter the correct vales as the user types and disallow any other values ie: as the firstnumber is typed (say 3) then .00 is added, then as the decimal point and the first... (5 Replies)
Does anyone know the differences in commands when it come to Linux and Mac OS X? I'm wanting to know if I use "this" command in Linux and It doesn't work in Mac then what command is equivalent to the one in Linux. Example Ctrl+Alt+f2 switches to (tty2) so what equivalent switches to ttys2 on Mac? (13 Replies)
Hi
We meet errors while running configuration scripts to prepare compiling source code on AIX 7.2. This error does not happen on AIX5.3 and AIX6.1
With the “/usr/bin/sh” from AIX7.2, sometimes , the script runs sucessfully, sometimes not. It’s unstable, and I don’t know why.
When... (10 Replies)