Return true if the sign bit of number is set.
Declared in <bdlb_float.h>
static
bool
signBit(float number);
This function is equivalent to the signbit macro in C99. Note that this function will return true for some NaNs, even though the concepts of negative and positive do not apply to NaNs.
true if the sign bit of number is set, and false otherwise
| Name | Description |
|---|---|
| number | floating-point value to test |