isless Macro

Purpose

Tests if x is less than y.

Syntax

#include <math.h>
int isless (x, y)
real-floating x;
real-floating y;

Description

The isless macro determines whether its first argument is less than its second argument. The value of isless(x, y) is equal to (x) < (y); however, unlike (x) < (y), isless(x, y) does not raise the invalid floating-point exception when x and y are unordered.

Parameters

Item Description
x Specifies the first value to be compared.
y Specifies the second value to be compared.

Return Values

Upon successful completion, the isless macro returns the value of (x) < (y).

If x or y is NaN, 0 is returned.