>>198
double val = 1234.5678;

printf("%.0f");
->1235
printf("%d", (int)val);
->1234