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

Functions

float nearbyintf (float x)
 Round to nearby integral value. More...
 

Function Documentation

◆ nearbyintf()

float nearbyintf ( float  x)

Round to nearby integral value.

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