isfinite Macro

Purpose

Tests for finite value.

Syntax

#include <math.h>

int isfinite (x)
real-floating x;

Description

The isfinite macro determines whether its argument has a finite value (zero, subnormal, or normal, and not infinite or NaN). 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 isfinite macro returns a nonzero value if its argument has a finite value.