<pre name="code" class="java">package nan;
/**
* NaN情况下无法比较大小
* @author root
*
*/
public class Nan { public static void main(String[] args) {
// TODO Auto-generated method stub double i=Double.NaN;
double j=1.0;
if(i<j || i>=j)
System.out.println("yes");
else
System.out.println("no");
if((i+1)>i)
System.out.println("(i+i)<i"); } }
05-28 08:39