macro
<cmath> <ctgmath>

# islessequal

macro ```islessequal(x,y) ```
function ```bool islessequal (float x , float y); bool islessequal (double x , double y); bool islessequal (long double x, long double y); ```
Is less or equal
Returns whether x is less than or equal to y.

If one or both arguments are NaN, the function returns `false`, but no FE_INVALID exception is raised (note that the expression `x<=y` may raise such an exception in this case).

In C, this is implemented as a macro that returns an `int` value. The type of both x and y shall be `float`, `double` or `long double`.
In C++, it is implemented with function overloads for each floating-point type, each returning a `bool` value.

### Parameters

x, y
Values to be compared.

### Return value

The same as `(x)<=(y)`:
`true` (`1`) if x is less than or equal to y.
`false` (`0`) otherwise.

### Example

 ``12345678910111213141516`` ``````/* islessequal example */ #include /* printf */ #include /* islessequal, log */ int main () { double result; result = log (10.0); if (islessequal(result,0.0)) printf ("log(10.0) is not positive"); else printf ("log(10.0) is positive"); return 0; }``````

Output:
 ``` log(10.0) is positive ```