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

&pagelevel(4)&pagelevel

Definition

#include <math.h>

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

Beschreibung

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(),  math.h.