Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

isnan(3) [ultrix man page]

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)																 isnan(3M)

NAME
isnan() - floating-point test for NaN SYNOPSIS
floating-type DESCRIPTION
The macro determines whether its argument is a NaN. The argument must be of floating type. For HP Integrity servers, the argument can be any floating type. For PA-RISC, the argument must be either or The macro implements the functionality recommended by the IEEE-754 standard for floating-point arithmetic. The macro replaces the and functions, which are obsolete and are no longer supported. USAGE
To use the macro, compile either with the default option or with the and options. Make sure your program includes Link in the math library by specifying on the compiler or linker command line. RETURN VALUE
The macro returns a nonzero value if and only if its argument has a NaN value. The macro raises no floating-point exceptions. ERRORS
No errors are defined. EXAMPLES
Take certain actions if is not a NaN: SEE ALSO
fpclassify(3M), isfinite(3M), isinf(3M), isnormal(3M), signbit(3M), math(5). STANDARDS CONFORMANCE
isnan(3M)
Man Page

6 More Discussions You Might Find Interesting

1. Solaris

Apache config issue

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)
Discussion started by: BrewDudeBob
17 Replies

2. Shell Programming and Scripting

strange ksh arithmetic

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)
Discussion started by: fbg
15 Replies

3. Programming

Input arguments with C++

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)
Discussion started by: kristinu
18 Replies

4. Web Development

Javascript to force decimals in 0.25 steps

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)
Discussion started by: barrydocks
5 Replies

5. Open Source

The Terminal on Mac OS X

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)
Discussion started by: 1negroup
13 Replies

6. AIX

Compiling problem - AIX 7.2

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)
Discussion started by: bobochacha29
10 Replies