Item | Value |
Header file | math.h |
Declaration | float rintf(float arg); double rint(double arg); long double rintl(long double arg); |
Return | returns the value of arg rounded to the nearest integer. |
#include <math.h> #include <stdio.h> int main(void) { printf("%f\n", rint (11)); return 0; }
11.000000
19.59.rint | ||||
19.59.1. | rint |