BloombergLP::bdlb::Float

Namespace for floating-point classification types and functions.

Synopsis

Declared in <bdlb_float.h>

struct Float;

Enums

NameDescription
Classification Basic classifications for floating-point numbers. Every floating-point number belongs to exactly one of these classifications. However, the enumerated values have disjoint bit-patterns to make it easy to create a "set" of classifications using bit-wise OR.
FineClassification Fine-grained classifications for floating-point numbers that distinguish positive numbers from negative numbers and quiet NaNs from signaling NaNs. Every floating-point number belongs to exactly one of these classifications.

Static Member Functions

NameDescription
classify classify overloads
classifyFine classifyFine overloads
isFinite isFinite overloads
isInfinite isInfinite overloads
isNan isNan overloads
isNormal isNormal overloads
isQuietNan isQuietNan overloads
isSignalingNan isSignalingNan overloads
isSubnormal Return true if the specified floating point number holds a subnormal value, and false otherwise.
isZero Return true if the specified floating point number has a value of positive or negative zero, and false otherwise.
signBit signBit overloads