isnormal Macro

Purpose

Tests for a normal value.

Syntax

#include <math.h>

int isnormal (x)
real-floating x;

Description

The isnormal macro determines whether its argument value is normal (neither zero, subnormal, infinite, nor NaN) or not. An argument represented in a format wider than its semantic type is converted to its semantic type. Determination is based on the type of the argument.

Parameters

Item Description
x Specifies the value to be tested.

Return Values

The isnormal macro returns a nonzero value if its argument has a normal value.