1SIGNBIT(P) POSIX Programmer's Manual SIGNBIT(P)
2
3
4
6 signbit - test sign
7
9 #include <math.h>
10
11 int signbit(real-floating x);
12
13
15 The signbit() macro shall determine whether the sign of its argument
16 value is negative. NaNs, zeros, and infinities have a sign bit.
17
19 The signbit() macro shall return a non-zero value if and only if the
20 sign of its argument value is negative.
21
23 No errors are defined.
24
25 The following sections are informative.
26
28 None.
29
31 None.
32
34 None.
35
37 None.
38
40 fpclassify() , isfinite() , isinf() , isnan() , isnormal() , the Base
41 Definitions volume of IEEE Std 1003.1-2001, <math.h>
42
44 Portions of this text are reprinted and reproduced in electronic form
45 from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
46 -- Portable Operating System Interface (POSIX), The Open Group Base
47 Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
48 Electrical and Electronics Engineers, Inc and The Open Group. In the
49 event of any discrepancy between this version and the original IEEE and
50 The Open Group Standard, the original IEEE and The Open Group Standard
51 is the referee document. The original Standard can be obtained online
52 at http://www.opengroup.org/unix/online.html .
53
54
55
56IEEE/The Open Group 2003 SIGNBIT(P)