NAN(3) BSD Library Functions Manual NAN(3)NAME
nan -- generate a quiet NaN
SYNOPSIS
#include <math.h>
double
nan(const char *tagp);
float
nanf(const char *tagp);
DESCRIPTION
The nan() and nanf() functions return a quiet NaN. The character string tagp is converted to an integer, which is clipped to the range 0 to
255, inclusive. This value is used as the NaN code. The NaN code is placed in the 8th through 15th most significant bits of the fraction
field of the resulting NaN.
SPECIAL VALUES
If tagp is empty, 0 is used for the NaN code.
STANDARDS
The nan() and nanf functions conform to ISO/IEC 9899:1999(E).
BSD July 24, 2003 BSD
Check Out this Related Man Page
nan(3M) Mathematical Library Functions nan(3M)NAME
nan, nanf, nanl - return quiet NaN
SYNOPSIS
cc [ 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.10 1 Sep 2002 nan(3M)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)