/* 来 自 n o w j a v a . c o m*/
public class Main {
public static void main(String[] args) {
/*
It return true if the specified argument is Not-a-Number value, false otherwise.
*/
float f = (float) Math.sqrt(-10);
boolean b1 = Float.isNaN(f);
System.out.println(b1);
/*
boolean isNaN() instance method checks whether the Float object is
Not-a-Number value or not.
It return true if the object is Not-a-Number value, false otherwise.
*/
/**代码未完, 请加载全部代码(NowJava.com).**/
本文系作者在时代Java发表,未经许可,不得转载。如有侵权,请联系nowjava@qq.com删除。