55问答网
所有问题
如何判断 一个double 是不是 NaN
如题所述
举报该问题
推荐答案 2015-11-23
打开 MATLAB Command window中输入 help NaN,可以看到 NaN(Not-a-Number) 的意思是“不是一个数字”。 NaN is the IEEE arithmetic representation for Not-a-Number. A NaN is obtained as a result of mathematically undefined operations l
温馨提示:答案为网友推荐,仅供参考
当前网址:
http://55.wendadaohang.com/zd/I8c4QLFFReQGLGGRLc4.html
其他回答
第1个回答 2018-03-20
判断一个数是否是NaN
要这样写:Double.isNaN(d)
若写成 d==Double.NaN是不行滴!
如果是Double类型,还有一个d.isNaN()方法可以判断
其他类型类推
相似回答
大家正在搜
相关问题
C# 如何判断数据是否为 NaN
如何比较两个double型数并且判断他们是不是无穷大或NaN
java里面有判断是否为NaN的函数吗
C/C++中如何判断一个double类型的变量为零
js如何判断一个对象是不是Array?
Python中怎么判断一个浮点数是NaN
java 中如何判断输入的是int还是double
关于 java 中isNaN()