阅读背景:

iphone:浮动转换为无符号整数如果它们是负数,则设置为0?

来源:互联网 

try it out:

试试看:

volatile float bob = -344.0f;
unsigned int fred = (unsigned int)bob;

printf("%d\n",fred);
volatile float bob = -344.



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: