![]() -> Click here to learn how to get live help <- |
LRINTIndexNAMElrint, lrintf, lrintl, llrint, llrintf, llrintl - round to nearest integerSYNOPSIS#include <math.h> long int lrint(double x); DESCRIPTIONThese functions round their argument to the nearest integer value, using the current rounding direction. If fIxfP is infinite or NaN, or if the rounded value is outside the range of the return type, the numeric result is unspecified. A domain error may occur if the magnitude of fIxfP is too large.RETURN VALUEThe rounded integer value.ERRORS
CONFORMING TOC99.SEE ALSOceil(3), floor(3), lround(3), nearbyint(3), rint(3), round(3)
Index |