Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

nan(3) [debian man page]

NAN(3)							     Linux Programmer's Manual							    NAN(3)

NAME
nan, nanf, nanl - return 'Not a Number' SYNOPSIS
#include <math.h> double nan(const char *tagp); float nanf(const char *tagp); long double nanl(const char *tagp); Link with -lm. Feature Test Macro Requirements for glibc (see feature_test_macros(7)): nan(), nanf(), nanl(): _XOPEN_SOURCE >= 600 || _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L; or cc -std=c99 DESCRIPTION
These functions return a representation (determined by tagp) of a quiet NaN. If the implementation does not support quiet NaNs, these functions return zero. The call nan("char-sequence") is equivalent to: strtod("NAN(char-sequence)", NULL); Similarly, calls to nanf() and nanl() are equivalent to analogous calls to strtof(3) and strtold(3). The argument tagp is used in an unspecified manner. On IEEE 754 systems, there are many representations of NaN, and tagp selects one. On other systems it may do nothing. VERSIONS
These functions first appeared in glibc in version 2.1. CONFORMING TO
C99, POSIX.1-2001. See also IEC 559 and the appendix with recommended functions in IEEE 754/IEEE 854. SEE ALSO
isnan(3), strtod(3), math_error(7) COLOPHON
This page is part of release 3.44 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. GNU
2010-09-20 NAN(3)

Check Out this Related Man Page

NAN(3)							     Linux Programmer's Manual							    NAN(3)

NAME
nan, nanf, nanl - return 'Not a Number' SYNOPSIS
#include <math.h> double nan(const char *tagp); float nanf(const char *tagp); long double nanl(const char *tagp); Link with -lm. Feature Test Macro Requirements for glibc (see feature_test_macros(7)): nan(), nanf(), nanl(): _XOPEN_SOURCE >= 600 || _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L; or cc -std=c99 DESCRIPTION
These functions return a representation (determined by tagp) of a quiet NaN. If the implementation does not support quiet NaNs, these functions return zero. The call nan("char-sequence") is equivalent to: strtod("NAN(char-sequence)", NULL); Similarly, calls to nanf() and nanl() are equivalent to analogous calls to strtof(3) and strtold(3). The argument tagp is used in an unspecified manner. On IEEE 754 systems, there are many representations of NaN, and tagp selects one. On other systems it may do nothing. VERSIONS
These functions first appeared in glibc in version 2.1. CONFORMING TO
C99, POSIX.1-2001. See also IEC 559 and the appendix with recommended functions in IEEE 754/IEEE 854. SEE ALSO
isnan(3), strtod(3), math_error(7) COLOPHON
This page is part of release 3.27 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. GNU
2010-09-20 NAN(3)
Man Page

13 More Discussions You Might Find Interesting

1. HP-UX

MC ServiceGaurd

I was just asked if I had any experience with MC ServiceGuard with HP-UX, when I used HP I didn't use it but I am curious about it and would like to see about learning it (it seems lots of HP jobs want experience with it.) Also is this a HP product or is it used on other types of *nix. Thanks for... (10 Replies)
Discussion started by: jwbrown
10 Replies

2. Solaris

SVM metastat -- needs maintenance

Running Solaris 9 with SVM. I'm not that familiar with it, but metastat output gives "needs maintenance" message on 2 of the mirrors. There are no errors in /var/adm/messages. What do I need to do to fix this error? Thanks. (14 Replies)
Discussion started by: dangral
14 Replies

3. SCO

Root Folder Space Maintenance (SCO)

We have SCO Unix (realease 5.0.5b), Please advise which files can be safely deleted on the system root folder / to create space? These are mainly spool/message/history etc log files. Where they located and can they be deleted using rm? The server has been operational for the past 4 years. ... (17 Replies)
Discussion started by: othman
17 Replies

4. Solaris

Machine is booting to maintenance mode.

I had a power failure the other day and when my relatively new Solaris 10 machine rebooted it is thrown into maintenance mode. I've found the following lines in the /var/adm/messages file, I'm assuming this is the root cause of the problem. However, I don't have the slightest idea on how to... (9 Replies)
Discussion started by: cheetobandito
9 Replies

5. Solaris

Helpme !! ssh service in maintenance mode

Hi Guys, Virtual Machine - Solaris 10 ssh service is in maintenance mode, when i tried to disable it it got disabled but when i enabling it ( svcadm enable ssh) it is coming in maintenance mode...... Pls help (10 Replies)
Discussion started by: saurabh84g
10 Replies

6. Shell Programming and Scripting

Sorting problem: Multiple delimiters, multiple keys

Hello If you wanted to sort a .csv file that was filled with lines like this: <Ticker>,<Date as YYYYMMDD>,<Time as H:M:S>,<Volume>,<Corr> (H : , M, S: ) by date, does anybody know of a better solution than to turn the 3rd and 4th colons of every line into commas, sorting on four keys,... (20 Replies)
Discussion started by: Ryan.
20 Replies

7. OS X (Apple)

Scripting User Account Removal

Ok, so I've been looking all over the place for how exactly to do this and I've become so bombarded with information I finally decided I'll pose the question here. I'm not a programmer or anything that hardcore, but if I see things already implemented and working examples I can easily learn and... (17 Replies)
Discussion started by: panacea
17 Replies

8. Solaris

Solaris 10 system boots into Maintenance mode

I have seen similar threads on this issue, but I have not seen a fix. Basically I am getting a lot of rcp bind errors. Below find the output of "svcs -xv". not sure where to begin: # svcs -xv svc:/network/rpc/bind:default (RPC bindings) State: maintenance since Fri May 25 14:13:18 2012... (14 Replies)
Discussion started by: brownwrap
14 Replies

9. Solaris

Netra 440 maintenance light on

Hi All, I hope I'm posting this in the right forum, apologies if not. I have a Netra 440 server which has been showing an amber maintenance light for some time now. It first appeared when I upgraded the memory modules, but the new memory is working fine. All other components seem OK and the... (10 Replies)
Discussion started by: DouggieC
10 Replies

10. Solaris

How to make smtp:sendmail online from maintenance mode?

Hi Everyone, when i type "svcs -a | grep sendmail" it is giving the below output. $ svcs -a | grep sendmail disabled Nov_05 svc:/network/sendmail-client:default maintenance 10:31:52 svc:/network/smtp:sendmail Can anyone help me that how to bring svc:/network/smtp:sendmail in... (10 Replies)
Discussion started by: Sun4Oracle
10 Replies

11. Red Hat

RHEL 5.9 going to maitenance mode

Hi.. I was installing one IBM s/w on RHEL 5.9. It got stuck and we killed the process at terminal Again we installed the s/w succesfully. But after that I tried to change the user. i.e., su testuser it was giving error. Permission denied. So I restarted the system. Now its going into... (11 Replies)
Discussion started by: sukhdip
11 Replies

12. AIX

AIX 7.1 Upgrade problem

Hi all, I'm getting errors while booting AIX 7.1 after upgrade I have used FLRT tool for the process with the following input values shown in the attached photo. titled FLRT After reboot for the upgrade process system hangs and no response as shown in screenshot named AIX7.1-NormalBoot I... (13 Replies)
Discussion started by: h@foorsa.biz
13 Replies

13. Solaris

Any hope for this bootlooping Sun V210?

Hi, First post here! I have a Sun V210 that I use occasionally for build testing things big-endian. I switched it on the other day, at it aint comin' up. I was wondering if anyone on this fine forum knows if it can be brought back from the dead. With the SCC card in, and conencted to... (22 Replies)
Discussion started by: vext01
22 Replies