Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

nan(3) [osx man page]

NAN(3)							   BSD Library Functions Manual 						    NAN(3)

nan -- generate a quiet NaN SYNOPSIS
#include <math.h> double nan(const char *tagp); long double nanl(const char *tagp); float nanf(const char *tagp); DESCRIPTION
The nan() functions return a quiet NaN, whose trailing fraction field contains the result of converting tagp to an unsigned integer. If tagp is too large to be contained in the trailing fraction field of the NaN, then the least significant bits of the integer represented by tagp are used. SPECIAL VALUES
If tagp contains any non-numeric characters, the function returns a NaN whos trailing fraction field is zero. If tagp is empty, the function returns a NaN whos trailing fraction field is zero. STANDARDS
The nan() functions conform to ISO/IEC 9899:2011. BSD
July 01, 2008 BSD

Check Out this Related Man Page

nan(3M) 						  Mathematical Library Functions						   nan(3M)

nan, nanf, nanl - return quiet NaN SYNOPSIS
c99 [ flag... ] file... -lm [ library... ] #include <math.h> double nan(const char *tagp); float nanf(const char *tagp); long double nanl(const char *tagp); DESCRIPTION
The function call nan("n-char-sequence") is equivalent to: strtod("NAN(n-char-sequence)", (char **) NULL); The function call nan(" ") is equivalent to: strtod("NAN()", (char **) NULL) If tagp does not point to an n-char sequence or an empty string, the function call is equivalent to: strtod("NAN", (char **) NULL) Function calls to nanf() and nanl() are equivalent to the corresponding function calls to strtof() and strtold(). See strtod(3C). RETURN VALUES
These functions return a quiet NaN. ERRORS
No errors are defined. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
math.h(3HEAD), strtod(3C), attributes(5), standards(5) SunOS 5.11 12 Jul 2006 nan(3M)
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:
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