package javaquestions;
public class JavaQuestion20160523
{
public static void main(String[] args)
{
double d1 = 1.00001 - 0.00001;
double d2 = 1.000001 - 0.000001;
System.out.println(d1);
System.out.println(d2);
System.out.println(d1 == d2);
}
}
请问输出是false还是true,为什么 |
|