BloombergLP::bdlb::Float::classify

Return the coarse classification of the specified number.

Synopsis

Declared in <bdlb_float.h>

static
Classification
classify(float number);

Description

The result is one of k_ZERO, k_NORMAL, k_SUBNORMAL, k_INFINITE, or k_NAN. This function has the same functionality as the fpclassify macro in C99.

Return Value

coarse classification of number

Parameters

NameDescription
numberfloating-point value to classify