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

Functions

float roundf (float x)
 Round to nearest. More...
 

Function Documentation

◆ roundf()

float roundf ( float  x)

Round to nearest.

The roundf 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 roundf functions return the rounded integer value.