Everything

truncf [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>

float __far truncf(float 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.