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

Functions

float truncf (float x)
 Truncate value. More...
 

Function Documentation

◆ truncf()

float truncf ( float  x)

Truncate value.

The truncf functions round their argument to the integer value, in floating format, nearest to but no larger in magnitude than the argument.

Parameters
xValue to truncate.
Returns
The truncf functions return the truncated integer value.