NAN(2) System Calls Manual NAN(2)NAME
NaN, Inf, isNaN, isInf - not-a-number and infinity functions
SYNOPSIS
#include <u.h>
#include <libc.h>
double NaN(void)
long Inf(int)
int isNaN(double)
int isInf(double, int)
DESCRIPTION
The IEEE floating point standard defines values called `not-a-number' and positive and negative `infinity'. These values can be produced
by such things as overflow and division by zero. Also, the library functions sometimes return them when the arguments are not in the
domain, or the result is out of range.
NaN returns a double that is not-a-number. IsNaN returns true if its argument is not-a-number.
Inf(i) returns positive infinity if i is greater than or equal to zero, else negative infinity. IsInf returns true if its first argument
is infinity with the same sign as the second argument.
SOURCE
/sys/src/libc/$objtype/nan.c
NAN(2)
Check Out this Related Man Page
ieee(3m)ieee(3m)Name
copysign, drem, finite, logb, scalb - copysign, remainder, exponent manipulations
Syntax
#include <math.h>
double copysign(x,y)
double x,y;
double drem(x,y)
double x,y;
int finite(x)
double x;
double logb(x)
double x;
double scalb(x,n)
double x;
int n;
Description
These functions are required, or recommended by the IEEE standard 754 for floating-point arithmetic.
The function returns x with its sign changed to y's.
The function returns the remainder r := x - n*y where n is the integer nearest the exact value of x/y. Additionally if |n-x/y|=1/2, then n
is even. Consequently the remainder is computed exactly and |r| <= |y|/2. Note that is the exception (see Diagnostics).
Finite(x) = 1 just when -infinity < x < +infinity,
= 0 otherwise (when |x| = infinity or x is NaN)
The a signed integer converted to double-precision floating-point and so chosen that 1 <= |x|/2**n < 2 unless x = 0 or |x| = infinity or x
lies between 0 and the Underflow Threshold.
Scalb(x,n) = x*(2**n) computed, for integer n, without first computing 2**N.
Diagnostics
IEEE 754 defines drem(x,0) and drem(infinity,y) to be invalid operations that produce a NaN.
IEEE 754 defines logb(+-infinity) = +infinity and logb(0) = -infinity, requires the latter to signal Division-by-Zero.
Restrictions
IEEE 754 currently specifies that logb(denormalized no.) = logb(tiniest normalized no. > 0) but the consensus has changed to the specifica-
tion in the new proposed IEEE standard p854, namely that logb(x) satisfy
1 <= scalb(|x|,-logb(x)) < Radix ... = 2 for IEEE 754
for every x except 0, infinity and NaN. Almost every program that assumes 754's specification will work correctly if logb follows 854's
specification instead.
IEEE 754 requires copysign(x,NaN) = +-x but says nothing else about the sign of a NaN.
See Alsofloor(3M), fp_class(3), math(3M)
RISC ieee(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)