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

Functions

long double roundl (long double x)
 Round to nearest. More...
 

Function Documentation

◆ roundl()

long double roundl ( long double  x)

Round to nearest.

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