[Linux manuál]

trunc, truncf, truncl: zaokrouhlit na celé číslo, směrem k nule

Originální popis anglicky: trunc, truncf, truncl - round to integer, towards zero

Návod, kniha: Linux Programmer's Manual

STRUČNĚ

#include <math.h>
 
double trunc(double x);
 
float truncf(float x);
 
long double truncl(long double x);
 
Link with -lm.

POPIS / INSTRUKCE

These functions round x to the nearest integer not larger in absolute value.

NÁVRATOVÁ HODNOTA

The rounded integer value. If x is integral, infinite or NaN, x itself is returned.

CHYBY / ERRORY

None.

ODPOVÍDAJÍCÍ

C99.

SOUVISEJÍCÍ

ceil(3), floor(3), lrint(3), nearbyint(3), rint(3), round(3)
2001-05-31