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 4.0B04, truncf, truncl - ganzzahliger Teil einer Gleitkommazahl

&pagelevel(4)&pagelevel

Definition

#include <math.h>

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

Diese Funktionen liefern als Ergebnis den ganzzahligen Teil von x mit Vorzeichen von x als Gleitpunktzahl.

Returnwert

Ganzzahliger Teil von x mit Vorzeichen von x.

Siehe auch

frexp, ldexp, modf