Item Value
Header filemath.h
Declarationfloat rintf(float arg);double rint(double arg);long double rintl(long double arg);
Returnreturns the value of arg rounded to the nearest integer.
#include
#include
int main(void)
{
printf("%f\n", rint (11));
return 0;
}
11.000000