islessequal() — Determines if X is less than or equal to Y
Standards
Standards / Extensions | C or C++ | Dependencies |
---|---|---|
C99 |
both |
z/OS V1R8 |
Format
#define _ISOC99_SOURCE
#include <math.h>
int islessequal(real-floating x, real-floating y);
#define __STDC_WANT_DEC_FP__
#include <math.h>
int islessequal(real-floating x, real-floating y); /* C only */
int islessequal(decimal-floating x, decimal-floating y); /* C only */
bool islessequal(real-floating x, real-floating y); /* C++ only */
bool islessequal(decimal-floating x, decimal-floating y); /* C++ only */
#define _TR1_C99
#include <math.h>
bool islessequal(real-floating x, real-floating y); /* C++ only */
General description
The islessequal() macro or function template determines whether the argument x is less than or equal to y. It is equivalent to (x) <= (y), but no exception is raised if x or y are NaN.
Function | Hex | IEEE |
---|---|---|
islessequal | X | X |
Notes:
- To use IEEE decimal floating-point, the hardware must have the Decimal Floating-Point Facility installed.
- This function works in IEEE decimal floating-point format. See "IEEE Decimal Floating-Point" for more information.
Returned value
The islessequal() macro returns 1 if the value of x is less than or equal to y, else returns 0. The C++ function template returns true if the value of x is less than or equal to y, else returns false.