Standards / Extensions | C or C++ | Dependencies |
---|---|---|
C99 |
both |
z/OS V1R8 |
#define _ISOC99_SOURCE
#include <math.h>
int signbit(real-floating x);
#define __STDC_WANT_DEC_FP__
#include <math.h>
int signbit(real-floating x); /* C only */
int signbit(decimal-floating x); /* C only */
bool signbit(real-floating x); /* C++ only */
bool signbit(decimal-floating x); /* C++ only */
#define _TR1_C99
#include <math.h>
bool signbit(real-floating x); /* C++ only */
The signbit() macro or function template determines whether the sign of its argument value is negative.
Function | Hex | IEEE |
---|---|---|
signbit | X | X |
The signbit() macro returns 1 if the sign of its argument value is negative, else returns 0. The C++ function template returns true if the sign of its argument value is negative, else returns false.