Standards / Extensions | C or C++ | Dependencies |
---|---|---|
C99 |
both | 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);
Function | Hex | IEEE |
---|---|---|
round | X | X |
roundf | X | X |
roundl | X | X |
The round() family of functions returns the rounded integer value.