double x = 1;
printf("%d\n", (int)x);
こうか?