读书人

float x,什么时候x != x呢?解决方法

发布时间: 2012-03-17 19:06:28 作者: rapoo

float x,什么时候x != x呢?
今天在笔试时,有这样一个题目。
float x,问什么情况下, x != x 为真呢?
是不是x为float无法表示的数时呢?如无穷大?

[解决办法]
拜托发帖前搜一下。还发现这里帖子跑楼上那地方去了。
http://community.csdn.net/Expert/topic/5303/5303554.xml?temp=9.246463E-02

读书人网 >C语言

热点推荐