![]() -> Click here to learn how to get live help <- |
LROUNDIndexNAMElround, lroundf, lroundl, llround, llroundf, llroundl - round to nearest integer, away from zeroSYNOPSIS#include <math.h> long int lround(double x); DESCRIPTIONThese functions round their argument to the nearest integer value, rounding away from zero, regardless of 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), lrint(3), nearbyint(3), rint(3), round(3)
Index |