>>352
double d = 3000.2;

printf("%d",(int)d);