BloombergLP::bdlb::Float::isNormal

Return true if number holds a normal floating-point value.

Synopsis

Declared in <bdlb_float.h>

static
bool
isNormal(float number);

Description

A normal value is neither zero, subnormal, infinite, nor NaN. This function is equivalent to the isnormal macro in C99.

Return Value

true if number holds a normal floating-point value, and false otherwise

Parameters

NameDescription
numberfloating-point value to test