7.12.9.3 The nearbyint functions
Synopsis
#include <math.h>
double nearbyint(double x);
float nearbyintf(float x);
long double nearbyintl(long double x);
Description
The nearbyint functions round their argument to an integer value in floating-point format, using the current rounding direction and without raising the “inexact” floating- point exception.
Returns
The nearbyint functions return the rounded integer value.