7.12.9.6 The round functions

Synopsis

1

#include <math.h>
double round(double x);
float roundf(float x);
long double roundl(long double x);

Description

2

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

3

The round functions return the rounded integer value.