Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

trunc, truncf, truncl - round to truncated integer value

&pagelevel(4)&pagelevel

Definition   

#include <math.h>

double trunc(double x); (C11)
float truncf(float x); (C11)
long double truncl(long double x); (C11)

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

Return val.

Integer part of x with the sign of x.


See also

frexp, ldexp, modf