NAME
rroouunndd, llrroouunndd, llllrroouunndd - round to integral value, regardless of rounding
directionSYNOPSIS
##iinncclluuddee <
double rroouunndd(double x); long double rroouunnddll(long double x); float rroouunnddff(float x); long int llrroouunndd(double x); long int llrroouunnddll(long double x); long int llrroouunnddff(float x); long long int llllrroouunndd(double x); long long int llllrroouunnddll(long double x); long long int llllrroouunnddff(float x);> DESCRIPTION
The rroouunndd() functions return the integral value nearest to x rounding
half-way cases away from zero, regardless of the current rounding direc-
tion. The llrroouunndd() and llllrroouunndd() functions return the integral value nearest tox (rounding half-way cases away from zero, regardless of the current
rounding direction) in the return formats specified. If the rounded
value is outside the range of the return type, the numeric result isunspecified and the "invalid" floating-point exception is raised. A range
error may occur if the magnitude of x is too large. SSPPEECCIIAALL VVAALLUUEESSrroouunndd(+-0) returns +-0.
rroouunndd(+-infinity) returns +-infinity.
The rroouunndd() functions may, but are not required to, raise the "inexact"floating-point exception for non-integer numeric arguments.
The llrroouunndd() and llllrroouunndd() functions need not raise the "inexact" float-
ing-point exception for non-integer arguments that round to within the
range of the return type.SEE ALSO
abs(3), fabs(3), ceil(3), floor(3), math(3), rint(3) STANDARDS The rroouunndd() , llrroouunndd() , and llllrroouunndd() functions conform to ISO/IEC 9899:1999(E). BSD July 22, 2003 BSD