运行的测试代码
@Test
public void test(){
for (double i = 0; i < 4; i=(i*10+1)/10) {
for (double k = 0; k <i; k=(k*10+1)/10) {
System.out.println(i+"-"+k+"="+(i-k));
}
}
}
..
没啥大意义,就是想玩玩,
因为一直都说,double的数据失真,但是每次编写代码的时候,都没有感觉什么失真的出现,所以就测试了一下double的计算失真情况
结果发现 有关double的计算,失真率很高哈哈@风骚骚
附带一组测试数据,
0.1-0.0=0.1
0.2-0.0=0.2
0.2-0.1=0.1
0.3-0.0=0.3
0.3-0.1=0.19999999999999998
0.3-0.2=0.09999999999999998
0.4-0.0=0.4
0.4-0.1=0.30000000000000004
0.4-0.2=0.2
0.4-0.3=0.10000000000000003
0.5-0.0=0.5
0.5-0.1=0.4
0.5-0.2=0.3
0.5-0.3=0.2
0.5-0.4=0.09999999999999998
0.6-0.0=0.6
0.6-0.1=0.5
0.6-0.2=0.39999999999999997
0.6-0.3=0.3
0.6-0.4=0.19999999999999996
0.6-0.5=0.09999999999999998
0.7-0.0=0.7
0.7-0.1=0.6
0.7-0.2=0.49999999999999994
0.7-0.3=0.39999999999999997
0.7-0.4=0.29999999999999993
0.7-0.5=0.19999999999999996
0.7-0.6=0.09999999999999998
0.8-0.0=0.8
0.8-0.1=0.7000000000000001
0.8-0.2=0.6000000000000001
0.8-0.3=0.5
0.8-0.4=0.4
0.8-0.5=0.30000000000000004
0.8-0.6=0.20000000000000007
0.8-0.7=0.10000000000000009
0.9-0.0=0.9
0.9-0.1=0.8
0.9-0.2=0.7
0.9-0.3=0.6000000000000001
0.9-0.4=0.5
0.9-0.5=0.4
0.9-0.6=0.30000000000000004
0.9-0.7=0.20000000000000007
0.9-0.8=0.09999999999999998
1.0-0.0=1.0
1.0-0.1=0.9
1.0-0.2=0.8
1.0-0.3=0.7
1.0-0.4=0.6
1.0-0.5=0.5
1.0-0.6=0.4
1.0-0.7=0.30000000000000004
1.0-0.8=0.19999999999999996
1.0-0.9=0.09999999999999998
1.1-0.0=1.1
1.1-0.1=1.0
1.1-0.2=0.9000000000000001
1.1-0.3=0.8
1.1-0.4=0.7000000000000001
1.1-0.5=0.6000000000000001
1.1-0.6=0.5000000000000001
1.1-0.7=0.40000000000000013
1.1-0.8=0.30000000000000004
1.1-0.9=0.20000000000000007
1.1-1.0=0.10000000000000009
1.2-0.0=1.2
1.2-0.1=1.0999999999999999
1.2-0.2=1.0
1.2-0.3=0.8999999999999999
1.2-0.4=0.7999999999999999
1.2-0.5=0.7
1.2-0.6=0.6
1.2-0.7=0.5
1.2-0.8=0.3999999999999999
1.2-0.9=0.29999999999999993
1.2-1.0=0.19999999999999996
1.2-1.1=0.09999999999999987
1.3-0.0=1.3
1.3-0.1=1.2
1.3-0.2=1.1
1.3-0.3=1.0
1.3-0.4=0.9
1.3-0.5=0.8
1.3-0.6=0.7000000000000001
1.3-0.7=0.6000000000000001
1.3-0.8=0.5
1.3-0.9=0.4
1.3-1.0=0.30000000000000004
1.3-1.1=0.19999999999999996
1.3-1.2=0.10000000000000009
1.4-0.0=1.4
1.4-0.1=1.2999999999999998
1.4-0.2=1.2
1.4-0.3=1.0999999999999999
1.4-0.4=0.9999999999999999
1.4-0.5=0.8999999999999999
1.4-0.6=0.7999999999999999
1.4-0.7=0.7
1.4-0.8=0.5999999999999999
1.4-0.9=0.4999999999999999
1.4-1.0=0.3999999999999999
1.4-1.1=0.2999999999999998
1.4-1.2=0.19999999999999996
1.4-1.3=0.09999999999999987
1.5-0.0=1.5
1.5-0.1=1.4
1.5-0.2=1.3
1.5-0.3=1.2
1.5-0.4=1.1
1.5-0.5=1.0
1.5-0.6=0.9
1.5-0.7=0.8
1.5-0.8=0.7
1.5-0.9=0.6
1.5-1.0=0.5
1.5-1.1=0.3999999999999999
1.5-1.2=0.30000000000000004
1.5-1.3=0.19999999999999996
1.5-1.4=0.10000000000000009
1.6-0.0=1.6
1.6-0.1=1.5
1.6-0.2=1.4000000000000001
1.6-0.3=1.3
1.6-0.4=1.2000000000000002
1.6-0.5=1.1
1.6-0.6=1.0
1.6-0.7=0.9000000000000001
1.6-0.8=0.8
1.6-0.9=0.7000000000000001
1.6-1.0=0.6000000000000001
1.6-1.1=0.5
1.6-1.2=0.40000000000000013
1.6-1.3=0.30000000000000004
1.6-1.4=0.20000000000000018
1.6-1.5=0.10000000000000009
1.7-0.0=1.7
1.7-0.1=1.5999999999999999
1.7-0.2=1.5
1.7-0.3=1.4
1.7-0.4=1.2999999999999998
1.7-0.5=1.2
1.7-0.6=1.1
1.7-0.7=1.0
1.7-0.8=0.8999999999999999
1.7-0.9=0.7999999999999999
1.7-1.0=0.7
1.7-1.1=0.5999999999999999
1.7-1.2=0.5
1.7-1.3=0.3999999999999999
1.7-1.4=0.30000000000000004
1.7-1.5=0.19999999999999996
1.7-1.6=0.09999999999999987
1.8-0.0=1.8
1.8-0.1=1.7
1.8-0.2=1.6
1.8-0.3=1.5
1.8-0.4=1.4
1.8-0.5=1.3
1.8-0.6=1.2000000000000002
1.8-0.7=1.1
1.8-0.8=1.0
1.8-0.9=0.9
1.8-1.0=0.8
1.8-1.1=0.7
1.8-1.2=0.6000000000000001
1.8-1.3=0.5
1.8-1.4=0.40000000000000013
1.8-1.5=0.30000000000000004
1.8-1.6=0.19999999999999996
1.8-1.7=0.10000000000000009
1.9-0.0=1.9
1.9-0.1=1.7999999999999998
1.9-0.2=1.7
1.9-0.3=1.5999999999999999
1.9-0.4=1.5
1.9-0.5=1.4
1.9-0.6=1.2999999999999998
1.9-0.7=1.2
1.9-0.8=1.0999999999999999
1.9-0.9=0.9999999999999999
1.9-1.0=0.8999999999999999
1.9-1.1=0.7999999999999998
1.9-1.2=0.7
1.9-1.3=0.5999999999999999
1.9-1.4=0.5
1.9-1.5=0.3999999999999999
1.9-1.6=0.2999999999999998
1.9-1.7=0.19999999999999996
1.9-1.8=0.09999999999999987
2.0-0.0=2.0
2.0-0.1=1.9
2.0-0.2=1.8
2.0-0.3=1.7
2.0-0.4=1.6
2.0-0.5=1.5
2.0-0.6=1.4
2.0-0.7=1.3
2.0-0.8=1.2
2.0-0.9=1.1
2.0-1.0=1.0
2.0-1.1=0.8999999999999999
2.0-1.2=0.8
2.0-1.3=0.7
2.0-1.4=0.6000000000000001
2.0-1.5=0.5
2.0-1.6=0.3999999999999999
2.0-1.7=0.30000000000000004
2.0-1.8=0.19999999999999996
2.0-1.9=0.10000000000000009
2.1-0.0=2.1
2.1-0.1=2.0
2.1-0.2=1.9000000000000001
2.1-0.3=1.8
2.1-0.4=1.7000000000000002
2.1-0.5=1.6
2.1-0.6=1.5
2.1-0.7=1.4000000000000001
2.1-0.8=1.3
2.1-0.9=1.2000000000000002
2.1-1.0=1.1
2.1-1.1=1.0
2.1-1.2=0.9000000000000001
2.1-1.3=0.8
2.1-1.4=0.7000000000000002
2.1-1.5=0.6000000000000001
2.1-1.6=0.5
2.1-1.7=0.40000000000000013
2.1-1.8=0.30000000000000004
2.1-1.9=0.20000000000000018
2.1-2.0=0.10000000000000009
2.2-0.0=2.2
2.2-0.1=2.1
2.2-0.2=2.0
2.2-0.3=1.9000000000000001
2.2-0.4=1.8000000000000003
2.2-0.5=1.7000000000000002
2.2-0.6=1.6
2.2-0.7=1.5000000000000002
2.2-0.8=1.4000000000000001
2.2-0.9=1.3000000000000003
2.2-1.0=1.2000000000000002
2.2-1.1=1.1
2.2-1.2=1.0000000000000002
2.2-1.3=0.9000000000000001
2.2-1.4=0.8000000000000003
2.2-1.5=0.7000000000000002
2.2-1.6=0.6000000000000001
2.2-1.7=0.5000000000000002
2.2-1.8=0.40000000000000013
2.2-1.9=0.30000000000000027
2.2-2.0=0.20000000000000018
2.2-2.1=0.10000000000000009
2.3-0.0=2.3
2.3-0.1=2.1999999999999997
2.3-0.2=2.0999999999999996
2.3-0.3=1.9999999999999998
2.3-0.4=1.9
2.3-0.5=1.7999999999999998
2.3-0.6=1.6999999999999997
2.3-0.7=1.5999999999999999
2.3-0.8=1.4999999999999998
2.3-0.9=1.4
2.3-1.0=1.2999999999999998
2.3-1.1=1.1999999999999997
2.3-1.2=1.0999999999999999
2.3-1.3=0.9999999999999998
2.3-1.4=0.8999999999999999
2.3-1.5=0.7999999999999998
2.3-1.6=0.6999999999999997
2.3-1.7=0.5999999999999999
2.3-1.8=0.4999999999999998
2.3-1.9=0.3999999999999999
2.3-2.0=0.2999999999999998
2.3-2.1=0.19999999999999973
2.3-2.2=0.09999999999999964
2.4-0.0=2.4
2.4-0.1=2.3
2.4-0.2=2.1999999999999997
2.4-0.3=2.1
2.4-0.4=2.0
2.4-0.5=1.9
2.4-0.6=1.7999999999999998
2.4-0.7=1.7
2.4-0.8=1.5999999999999999
2.4-0.9=1.5
2.4-1.0=1.4
2.4-1.1=1.2999999999999998
2.4-1.2=1.2
2.4-1.3=1.0999999999999999
2.4-1.4=1.0
2.4-1.5=0.8999999999999999
2.4-1.6=0.7999999999999998
2.4-1.7=0.7
2.4-1.8=0.5999999999999999
2.4-1.9=0.5
2.4-2.0=0.3999999999999999
2.4-2.1=0.2999999999999998
2.4-2.2=0.19999999999999973
2.4-2.3=0.10000000000000009
2.5-0.0=2.5
2.5-0.1=2.4
2.5-0.2=2.3
2.5-0.3=2.2
2.5-0.4=2.1
2.5-0.5=2.0
2.5-0.6=1.9
2.5-0.7=1.8
2.5-0.8=1.7
2.5-0.9=1.6
2.5-1.0=1.5
2.5-1.1=1.4
2.5-1.2=1.3
2.5-1.3=1.2
2.5-1.4=1.1
2.5-1.5=1.0
2.5-1.6=0.8999999999999999
2.5-1.7=0.8
2.5-1.8=0.7
2.5-1.9=0.6000000000000001
2.5-2.0=0.5
2.5-2.1=0.3999999999999999
2.5-2.2=0.2999999999999998
2.5-2.3=0.20000000000000018
2.5-2.4=0.10000000000000009
2.6-0.0=2.6
2.6-0.1=2.5
2.6-0.2=2.4
2.6-0.3=2.3000000000000003
2.6-0.4=2.2
2.6-0.5=2.1
2.6-0.6=2.0
2.6-0.7=1.9000000000000001
2.6-0.8=1.8
2.6-0.9=1.7000000000000002
2.6-1.0=1.6
2.6-1.1=1.5
2.6-1.2=1.4000000000000001
2.6-1.3=1.3
2.6-1.4=1.2000000000000002
2.6-1.5=1.1
2.6-1.6=1.0
2.6-1.7=0.9000000000000001
2.6-1.8=0.8
2.6-1.9=0.7000000000000002
2.6-2.0=0.6000000000000001
2.6-2.1=0.5
2.6-2.2=0.3999999999999999
2.6-2.3=0.30000000000000027
2.6-2.4=0.20000000000000018
2.6-2.5=0.10000000000000009
2.7-0.0=2.7
2.7-0.1=2.6
2.7-0.2=2.5
2.7-0.3=2.4000000000000004
2.7-0.4=2.3000000000000003
2.7-0.5=2.2
2.7-0.6=2.1
2.7-0.7=2.0
2.7-0.8=1.9000000000000001
2.7-0.9=1.8000000000000003
2.7-1.0=1.7000000000000002
2.7-1.1=1.6
2.7-1.2=1.5000000000000002
2.7-1.3=1.4000000000000001
2.7-1.4=1.3000000000000003
2.7-1.5=1.2000000000000002
2.7-1.6=1.1
2.7-1.7=1.0000000000000002
2.7-1.8=0.9000000000000001
2.7-1.9=0.8000000000000003
2.7-2.0=0.7000000000000002
2.7-2.1=0.6000000000000001
2.7-2.2=0.5
2.7-2.3=0.40000000000000036
2.7-2.4=0.30000000000000027
2.7-2.5=0.20000000000000018
2.7-2.6=0.10000000000000009
2.8-0.0=2.8
2.8-0.1=2.6999999999999997
2.8-0.2=2.5999999999999996
2.8-0.3=2.5
2.8-0.4=2.4
2.8-0.5=2.3
2.8-0.6=2.1999999999999997
2.8-0.7=2.0999999999999996
2.8-0.8=1.9999999999999998
2.8-0.9=1.9
2.8-1.0=1.7999999999999998
2.8-1.1=1.6999999999999997
2.8-1.2=1.5999999999999999
2.8-1.3=1.4999999999999998
2.8-1.4=1.4
2.8-1.5=1.2999999999999998
2.8-1.6=1.1999999999999997
2.8-1.7=1.0999999999999999
2.8-1.8=0.9999999999999998
2.8-1.9=0.8999999999999999
2.8-2.0=0.7999999999999998
2.8-2.1=0.6999999999999997
2.8-2.2=0.5999999999999996
2.8-2.3=0.5
2.8-2.4=0.3999999999999999
2.8-2.5=0.2999999999999998
2.8-2.6=0.19999999999999973
2.8-2.7=0.09999999999999964
2.9-0.0=2.9
2.9-0.1=2.8
2.9-0.2=2.6999999999999997
2.9-0.3=2.6
2.9-0.4=2.5
2.9-0.5=2.4
2.9-0.6=2.3
2.9-0.7=2.2
2.9-0.8=2.0999999999999996
2.9-0.9=2.0
2.9-1.0=1.9
2.9-1.1=1.7999999999999998
2.9-1.2=1.7
2.9-1.3=1.5999999999999999
2.9-1.4=1.5
2.9-1.5=1.4
2.9-1.6=1.2999999999999998
2.9-1.7=1.2
2.9-1.8=1.0999999999999999
2.9-1.9=1.0
2.9-2.0=0.8999999999999999
2.9-2.1=0.7999999999999998
2.9-2.2=0.6999999999999997
2.9-2.3=0.6000000000000001
2.9-2.4=0.5
2.9-2.5=0.3999999999999999
2.9-2.6=0.2999999999999998
2.9-2.7=0.19999999999999973
2.9-2.8=0.10000000000000009
3.0-0.0=3.0
3.0-0.1=2.9
3.0-0.2=2.8
3.0-0.3=2.7
3.0-0.4=2.6
3.0-0.5=2.5
3.0-0.6=2.4
3.0-0.7=2.3
3.0-0.8=2.2
3.0-0.9=2.1
3.0-1.0=2.0
3.0-1.1=1.9
3.0-1.2=1.8
3.0-1.3=1.7
3.0-1.4=1.6
3.0-1.5=1.5
3.0-1.6=1.4
3.0-1.7=1.3
3.0-1.8=1.2
3.0-1.9=1.1
3.0-2.0=1.0
3.0-2.1=0.8999999999999999
3.0-2.2=0.7999999999999998
3.0-2.3=0.7000000000000002
3.0-2.4=0.6000000000000001
3.0-2.5=0.5
3.0-2.6=0.3999999999999999
3.0-2.7=0.2999999999999998
3.0-2.8=0.20000000000000018
3.0-2.9=0.10000000000000009
3.1-0.0=3.1
3.1-0.1=3.0
3.1-0.2=2.9
3.1-0.3=2.8000000000000003
3.1-0.4=2.7
3.1-0.5=2.6
3.1-0.6=2.5
3.1-0.7=2.4000000000000004
3.1-0.8=2.3
3.1-0.9=2.2
3.1-1.0=2.1
3.1-1.1=2.0
3.1-1.2=1.9000000000000001
3.1-1.3=1.8
3.1-1.4=1.7000000000000002
3.1-1.5=1.6
3.1-1.6=1.5
3.1-1.7=1.4000000000000001
3.1-1.8=1.3
3.1-1.9=1.2000000000000002
3.1-2.0=1.1
3.1-2.1=1.0
3.1-2.2=0.8999999999999999
3.1-2.3=0.8000000000000003
3.1-2.4=0.7000000000000002
3.1-2.5=0.6000000000000001
3.1-2.6=0.5
3.1-2.7=0.3999999999999999
3.1-2.8=0.30000000000000027
3.1-2.9=0.20000000000000018
3.1-3.0=0.10000000000000009
3.2-0.0=3.2
3.2-0.1=3.1
3.2-0.2=3.0
3.2-0.3=2.9000000000000004
3.2-0.4=2.8000000000000003
3.2-0.5=2.7
3.2-0.6=2.6
3.2-0.7=2.5
3.2-0.8=2.4000000000000004
3.2-0.9=2.3000000000000003
3.2-1.0=2.2
3.2-1.1=2.1
3.2-1.2=2.0
3.2-1.3=1.9000000000000001
3.2-1.4=1.8000000000000003
3.2-1.5=1.7000000000000002
3.2-1.6=1.6
3.2-1.7=1.5000000000000002
3.2-1.8=1.4000000000000001
3.2-1.9=1.3000000000000003
3.2-2.0=1.2000000000000002
3.2-2.1=1.1
3.2-2.2=1.0
3.2-2.3=0.9000000000000004
3.2-2.4=0.8000000000000003
3.2-2.5=0.7000000000000002
3.2-2.6=0.6000000000000001
3.2-2.7=0.5
3.2-2.8=0.40000000000000036
3.2-2.9=0.30000000000000027
3.2-3.0=0.20000000000000018
3.2-3.1=0.10000000000000009
3.3-0.0=3.3
3.3-0.1=3.1999999999999997
3.3-0.2=3.0999999999999996
3.3-0.3=3.0
3.3-0.4=2.9
3.3-0.5=2.8
3.3-0.6=2.6999999999999997
3.3-0.7=2.5999999999999996
3.3-0.8=2.5
3.3-0.9=2.4
3.3-1.0=2.3
3.3-1.1=2.1999999999999997
3.3-1.2=2.0999999999999996
3.3-1.3=1.9999999999999998
3.3-1.4=1.9
3.3-1.5=1.7999999999999998
3.3-1.6=1.6999999999999997
3.3-1.7=1.5999999999999999
3.3-1.8=1.4999999999999998
3.3-1.9=1.4
3.3-2.0=1.2999999999999998
3.3-2.1=1.1999999999999997
3.3-2.2=1.0999999999999996
3.3-2.3=1.0
3.3-2.4=0.8999999999999999
3.3-2.5=0.7999999999999998
3.3-2.6=0.6999999999999997
3.3-2.7=0.5999999999999996
3.3-2.8=0.5
3.3-2.9=0.3999999999999999
3.3-3.0=0.2999999999999998
3.3-3.1=0.19999999999999973
3.3-3.2=0.09999999999999964
3.4-0.0=3.4
3.4-0.1=3.3
3.4-0.2=3.1999999999999997
3.4-0.3=3.1
3.4-0.4=3.0
3.4-0.5=2.9
3.4-0.6=2.8
3.4-0.7=2.7
3.4-0.8=2.5999999999999996
3.4-0.9=2.5
3.4-1.0=2.4
3.4-1.1=2.3
3.4-1.2=2.2
3.4-1.3=2.0999999999999996
3.4-1.4=2.0
3.4-1.5=1.9
3.4-1.6=1.7999999999999998
3.4-1.7=1.7
3.4-1.8=1.5999999999999999
3.4-1.9=1.5
3.4-2.0=1.4
3.4-2.1=1.2999999999999998
3.4-2.2=1.1999999999999997
3.4-2.3=1.1
3.4-2.4=1.0
3.4-2.5=0.8999999999999999
3.4-2.6=0.7999999999999998
3.4-2.7=0.6999999999999997
3.4-2.8=0.6000000000000001
3.4-2.9=0.5
3.4-3.0=0.3999999999999999
3.4-3.1=0.2999999999999998
3.4-3.2=0.19999999999999973
3.4-3.3=0.10000000000000009
3.5-0.0=3.5
3.5-0.1=3.4
3.5-0.2=3.3
3.5-0.3=3.2
3.5-0.4=3.1
3.5-0.5=3.0
3.5-0.6=2.9
3.5-0.7=2.8
3.5-0.8=2.7
3.5-0.9=2.6
3.5-1.0=2.5
3.5-1.1=2.4
3.5-1.2=2.3
3.5-1.3=2.2
3.5-1.4=2.1
3.5-1.5=2.0
3.5-1.6=1.9
3.5-1.7=1.8
3.5-1.8=1.7
3.5-1.9=1.6
3.5-2.0=1.5
3.5-2.1=1.4
3.5-2.2=1.2999999999999998
3.5-2.3=1.2000000000000002
3.5-2.4=1.1
3.5-2.5=1.0
3.5-2.6=0.8999999999999999
3.5-2.7=0.7999999999999998
3.5-2.8=0.7000000000000002
3.5-2.9=0.6000000000000001
3.5-3.0=0.5
3.5-3.1=0.3999999999999999
3.5-3.2=0.2999999999999998
3.5-3.3=0.20000000000000018
3.5-3.4=0.10000000000000009
3.6-0.0=3.6
3.6-0.1=3.5
3.6-0.2=3.4
3.6-0.3=3.3000000000000003
3.6-0.4=3.2
3.6-0.5=3.1
3.6-0.6=3.0
3.6-0.7=2.9000000000000004
3.6-0.8=2.8
3.6-0.9=2.7
3.6-1.0=2.6
3.6-1.1=2.5
3.6-1.2=2.4000000000000004
3.6-1.3=2.3
3.6-1.4=2.2
3.6-1.5=2.1
3.6-1.6=2.0
3.6-1.7=1.9000000000000001
3.6-1.8=1.8
3.6-1.9=1.7000000000000002
3.6-2.0=1.6
3.6-2.1=1.5
3.6-2.2=1.4
3.6-2.3=1.3000000000000003
3.6-2.4=1.2000000000000002
3.6-2.5=1.1
3.6-2.6=1.0
3.6-2.7=0.8999999999999999
3.6-2.8=0.8000000000000003
3.6-2.9=0.7000000000000002
3.6-3.0=0.6000000000000001
3.6-3.1=0.5
3.6-3.2=0.3999999999999999
3.6-3.3=0.30000000000000027
3.6-3.4=0.20000000000000018
3.6-3.5=0.10000000000000009
3.7-0.0=3.7
3.7-0.1=3.6
3.7-0.2=3.5
3.7-0.3=3.4000000000000004
3.7-0.4=3.3000000000000003
3.7-0.5=3.2
3.7-0.6=3.1
3.7-0.7=3.0
3.7-0.8=2.9000000000000004
3.7-0.9=2.8000000000000003
3.7-1.0=2.7
3.7-1.1=2.6
3.7-1.2=2.5
3.7-1.3=2.4000000000000004
3.7-1.4=2.3000000000000003
3.7-1.5=2.2
3.7-1.6=2.1
3.7-1.7=2.0
3.7-1.8=1.9000000000000001
3.7-1.9=1.8000000000000003
3.7-2.0=1.7000000000000002
3.7-2.1=1.6
3.7-2.2=1.5
3.7-2.3=1.4000000000000004
3.7-2.4=1.3000000000000003
3.7-2.5=1.2000000000000002
3.7-2.6=1.1
3.7-2.7=1.0
3.7-2.8=0.9000000000000004
3.7-2.9=0.8000000000000003
3.7-3.0=0.7000000000000002
3.7-3.1=0.6000000000000001
3.7-3.2=0.5
3.7-3.3=0.40000000000000036
3.7-3.4=0.30000000000000027
3.7-3.5=0.20000000000000018
3.7-3.6=0.10000000000000009
3.8-0.0=3.8
3.8-0.1=3.6999999999999997
3.8-0.2=3.5999999999999996
3.8-0.3=3.5
3.8-0.4=3.4
3.8-0.5=3.3
3.8-0.6=3.1999999999999997
3.8-0.7=3.0999999999999996
3.8-0.8=3.0
3.8-0.9=2.9
3.8-1.0=2.8
3.8-1.1=2.6999999999999997
3.8-1.2=2.5999999999999996
3.8-1.3=2.5
3.8-1.4=2.4
3.8-1.5=2.3
3.8-1.6=2.1999999999999997
3.8-1.7=2.0999999999999996
3.8-1.8=1.9999999999999998
3.8-1.9=1.9
3.8-2.0=1.7999999999999998
3.8-2.1=1.6999999999999997
3.8-2.2=1.5999999999999996
3.8-2.3=1.5
3.8-2.4=1.4
3.8-2.5=1.2999999999999998
3.8-2.6=1.1999999999999997
3.8-2.7=1.0999999999999996
3.8-2.8=1.0
3.8-2.9=0.8999999999999999
3.8-3.0=0.7999999999999998
3.8-3.1=0.6999999999999997
3.8-3.2=0.5999999999999996
3.8-3.3=0.5
3.8-3.4=0.3999999999999999
3.8-3.5=0.2999999999999998
3.8-3.6=0.19999999999999973
3.8-3.7=0.09999999999999964
3.9-0.0=3.9
3.9-0.1=3.8
3.9-0.2=3.6999999999999997
3.9-0.3=3.6
3.9-0.4=3.5
3.9-0.5=3.4
3.9-0.6=3.3
3.9-0.7=3.2
3.9-0.8=3.0999999999999996
3.9-0.9=3.0
3.9-1.0=2.9
3.9-1.1=2.8
3.9-1.2=2.7
3.9-1.3=2.5999999999999996
3.9-1.4=2.5
3.9-1.5=2.4
3.9-1.6=2.3
3.9-1.7=2.2
3.9-1.8=2.0999999999999996
3.9-1.9=2.0
3.9-2.0=1.9
3.9-2.1=1.7999999999999998
3.9-2.2=1.6999999999999997
3.9-2.3=1.6
3.9-2.4=1.5
3.9-2.5=1.4
3.9-2.6=1.2999999999999998
3.9-2.7=1.1999999999999997
3.9-2.8=1.1
3.9-2.9=1.0
3.9-3.0=0.8999999999999999
3.9-3.1=0.7999999999999998
3.9-3.2=0.6999999999999997
3.9-3.3=0.6000000000000001
3.9-3.4=0.5
3.9-3.5=0.3999999999999999
3.9-3.6=0.2999999999999998
3.9-3.7=0.19999999999999973
3.9-3.8=0.10000000000000009