Item Value
Header file#include
Declarationfloat truncf(float arg);double trunc(double arg);long double truncl(long double arg);
Returnreturns the truncated value of arg.
#include
#include
int main(void)
{
printf("%f\n", trunc (1.2));
return 0;
}
1.000000