MicrOS
round.c File Reference
#include "../math.h"

Functions

double round (double x)
 Round to nearest. More...
 

Function Documentation

◆ round()

double round ( double  x)

Round to nearest.

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.

Parameters
xValue to round.
Returns
The round functions return the rounded integer value.