fpclassify Macro

Purpose

Classifies real floating type.

Syntax

#include <math.h>

int fpclassify(x)
real-floating x;

Description

The fpclassify macro classifies the x parameter as NaN, infinite, normal, subnormal, zero, or into another implementation-defined category. An argument represented in a format wider than its semantic type is converted to its semantic type. Classification is based on the type of the argument.

Parameters

Item Description
x Specifies the value to be classified.

Return Values

The fpclassify macro returns the value of the number classification macro appropriate to the value of its argument.