7.12.9.4 The rint functions
Synopsis
#include <math.h>
double rint(double x);
float rintf(float x);
long double rintl(long double x);
Description
The rint functions differ from the nearbyint functions (7.12.9.3) only in that the rint functions may raise the “inexact” floating-point exception if the result differs in value from the argument.
Returns
The rint functions return the rounded integer value.