Namespace for floating-point classification types and functions.
Declared in <bdlb_float.h>
struct Float;
| Name | Description |
|---|---|
Classification | Basic classifications for floating-point numbers. |
FineClassification | Fine-grained classifications for floating-point numbers. |
| Name | Description |
|---|---|
classify | Return the coarse classification of the specified number. |
classifyFine | Return the fine-grained classification of the specified number. |
isFinite | Return true if number is finite. |
isInfinite | Return true if number is positive or negative infinity. |
isNan | Return true if number is not a number (NaN). |
isNormal | Return true if number holds a normal floating-point value. |
isQuietNan | Return true if number is a quiet NaN. |
isSignalingNan | Return true if number is a signaling NaN. |
isSubnormal | Return true if number holds a subnormal value. |
isZero | Return true if number is positive or negative zero. |
signBit | Return true if the sign bit of number is set. |