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

Name

Description

number

floating‐point value to test

Created with MrDocs