SIGNBIT(3) | Library Functions Manual | SIGNBIT(3) |
signbit
—
determine whether a floating-point number's sign is
negative
Standard C Library (libc, -lc)
#include
<math.h>
int
signbit
(real-floating
x);
The
signbit
()
macro takes an argument of x. It returns non-zero if
the value of the argument's sign is negative, otherwise 0.
The signbit
() macro conforms to
ISO/IEC 9899:1999
(“ISO C99”).
February 11, 2003 | Mac OS X 12 |