DOKK / manpages / debian 10 / manpages-pt-dev / rint.3.pt
RINT(3) Linux Programmer's Manual RINT(3)

rint - round to closest integer

#include <math.h>

double rint(double x);

The rint() function rounds x to an integer value according to the prevalent rounding mode. The default rounding mode is to round to the nearest integer.

The rint() function returns the integer value as a floating-point number.

BSD 4.3

abs(3), ceil(3), fabs(3), floor(3), labs(3)

June 6, 1993