NAME
rriinntt, llrriinntt, llllrriinntt - round to integral value
SYNOPSIS
##iinncclluuddee <
double rriinntt(double x); long double rriinnttll(long double x); float rriinnttff(float x); long int llrriinntt(double x); long int llrriinnttll(long double x); long int llrriinnttff(float x); long long int llllrriinntt(double x); long long int llllrriinnttll(long double x); long long int llllrriinnttff(float x);> DESCRIPTION
The rriinntt() functions return the integral value nearest to x (according tothe prevailing rounding mode) in floating-point format.
The llrriinntt() and llllrriinntt() functions return the integral value nearest to x(according to the prevailing rounding mode) in the return formats speci-
fied. If the rounded value is outside the range of the return type, thenumeric result is unspecified and the "invalid" floating-point exception
is raised. A range error may occur if the magnitude of x is too large. SSPPEECCIIAALL VVAALLUUEESSrriinntt(+-0) returns +-0 for all rounding modes.
rriinntt(+-infinity) returns +-infinity for all rounding modes.
All these functions raise the "inexact" floating-point exception if the
result differs in value from the argument (except when they raise someother floating-point exception, such as "invalid").
SEE ALSO
abs(3), fabs(3), ceil(3), floor(3), math(3) STANDARDS The rriinntt() , llrriinntt() , and llllrriinntt() functions conform to ISO/IEC 9899:1999(E). BSD January 23, 2003 BSD