7.12.9.6 The round functions
Synopsis
#include <math.h>
double round(double x);
float roundf(float x);
long double roundl(long double x);
Description
The round functions round their argument to the nearest integer value in floating-point format, rounding halfway cases away from zero, regardless of the current rounding direction.
Returns
The round functions return the rounded integer value.