#include
#include
int main(){
double a=123828749.66;
int b=a;
printf("%d\n",b);
printf("%lf\n",b);
return 0;
}
output:123838749 0.000000
why
#include
#include
int main(){
double a=123828749.66;
int b=a;
printf("%d\n",b);
printf("%lf\n",b);
return 0;
}
output:123838749 0.000000
why