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 and returns non-zero if the
value of its sign is negative, otherwise 0.
fpclassify(3), math(3)
The signbit() macro conforms to ISO/IEC 9899:1999 (``ISO C99'').
The signbit() macro was added in FreeBSD 5.1.
FreeBSD 5.2.1 February 11, 2003 FreeBSD 5.2.1 [ Back ] |