man.bsd.lv manual page server

Manual Page Search Parameters

SIGNBIT(3) Library Functions Manual SIGNBIT(3)

signbitdetermine whether a floating-point number's sign is negative

#include <math.h>

int
signbit(real-floating x);

The () 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 DragonFly 1.3.

May 28, 2019 DragonFly-5.6.1