Standards / Extensions | C or C++ | Dependencies |
---|---|---|
C99 |
both | z/OS® V1R5 |
#define _ISOC99_SOURCE
#include <math.h>
long int lround(double x);
long int lroundf(float x);
long int lroundl(long double x);
#define _TR1_C99
#include <math.h>
long lround(float x);
long lround(long double x);
Function | Hex | IEEE |
---|---|---|
lround | X | X |
lroundf | X | X |
lroundl | X | X |
The lround functions return the rounded integer value of x.
If the rounded value is outside the range of the return type, the numeric result is unspecified. A range error may occur if the magnitude of x is too large.