class Test
{
public static void main(String[] args) {
System.out.println(2.0 - 1.1);
System.out.println(1.0 - 0.1);
}
}
class Test
{
public static void main(String[] args) {
System.out.println(2.0 - 1.1);
System.out.println(1.0 - 0.1);
}
}
我测试的结果,怎么是这样:0.899999999999999
0.9
|
|