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

Functions

double trunc (double x)
 Truncate value. More...
 

Function Documentation

◆ trunc()

double trunc ( double  x)

Truncate value.

The trunc 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 trunc functions return the truncated integer value.