如何将浮点型转换成整型
floatx;longintb;x=3.60000000000;b=x;printf("x=%d,i=%d\n",x,b);printf("x=%f,i=%d\n",x,...
float x;
long int b;
x=3.60000000000;
b=x;
printf("x=%d,i=%d\n",x,b);
printf("x=%f,i=%d\n",x,b);
x=10,i=-1073741824
x=f,i=10 展开
long int b;
x=3.60000000000;
b=x;
printf("x=%d,i=%d\n",x,b);
printf("x=%f,i=%d\n",x,b);
x=10,i=-1073741824
x=f,i=10 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询