BloombergLP::bdlb::Float::isQuietNan

Return true if number is a quiet NaN.

Synopsis

Declared in <bdlb_float.h>

static
bool
isQuietNan(float number);

Description

An indeterminate floating-point value ("quiet NaN" or "QNaN") results from an operation for which the result is not mathematically defined, such as multiplying infinity by zero. If a QNaN is used in a subsequent operations the result will also be a QNaN. Note that, because a QNaN is a NaN, if this method returns true, then isNan(x) will also return true.

Return Value

true if number is a quiet NaN, and false otherwise

Parameters

NameDescription
numberfloating-point value to test