標準/拡張機能 | C/C++ | 依存項目 |
---|---|---|
C99 |
両方 |
z/OS V1R8 |
#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 */
islessequal() マクロまたは関数テンプレートは、引数 x が y 以下かどうかを判別します。これは、(x) <= (y) と等価ですが、x または y が NaN であっても例外は発生しません。
関数 | Hex | IEEE |
---|---|---|
islessequal | X | X |
islessequal() マクロは、x の値が y 以下であれば 1 を戻し、そうでなければ 0 を戻します。C++ 関数テンプレートは、x の値が y 以下であれば true を戻し、そうでなければ false を戻します。