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

Functions

double nearbyint (double x)
 Round to nearby integral value. More...
 

Function Documentation

◆ nearbyint()

double nearbyint ( double  x)

Round to nearby integral value.

The nearbyint functions round their argument to an integer value in floating-point format, using the current rounding direction and without raising the ‘‘inexact’’ floatingpoint exception.

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