Table of Contents
Previous Section Next Section

trunc

#include <math.h>float truncf(float arg);double trunc(double arg);
long double truncl(long double arg);

trunc( ), truncf( ), and truncl( ) were added by C99.

The trunc( ) family of functions returns the truncated value of arg.

A related function is nearbyint( ).


Table of Contents
Previous Section Next Section