macro | signbit(x) |
---|
function | bool signbit (float x); bool signbit (double x); bool signbit (long double x); |
---|
int
value. The type of x shall be float
, double
or long double
.bool
value.true
) if the sign of x is negative; and zero (false
) otherwise.
|
|
signbit(0.0) : 0 signbit(1.0/0.0) : 0 signbit(-1.0/0.0) : 1 signbit(sqrt(-1.0): 1 |