Everything

trunc [V1.09 or later]


This function rounds the argument by truncating the decimal part to form an integer value in a floating-point format.

[Classification]

Mathematical library

[Syntax]

#include <math.h>

double __far trunc(double x); (C99)

[Return value]

Returns a truncated integer value.

[Description]

This function rounds the argument by truncating the decimal part to form an integer value in a floating-point format.