標準/拡張機能 | C/C++ | 依存項目 |
---|---|---|
C99 |
両方 | z/OS V1R7 |
#define _ISOC99_SOURCE
#include <math.h>
double round(double x);
float roundf(float x);
long double roundl(long double x);
#define _TR1_C99
#include <math.h>
float round(float x);
long double round(long double x);
関数 | Hex | IEEE |
---|---|---|
round | X | X |
roundf | X | X |
roundl | X | X |
round() ファミリーの関数は、丸めた整数値を戻します。