skypacer210 / aviator

Automatically exported from code.google.com/p/aviator
0 stars 0 forks source link

没有正确处理超大数的扫描 #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
System.out.println(AviatorEvaluator.execute("100000000000000000000.0/3.0"));
//      2.5887598771507471E18

System.out.println(AviatorEvaluator.execute("100000000000000000000/3"));
//      2588759877150747306

正确结果应为

3.33333333333⋯⋯

Original issue reported on code.google.com by killme2...@gmail.com on 13 Dec 2011 at 8:17

GoogleCodeExporter commented 8 years ago
已在2.2.0版本中修复。

Original comment by killme2...@gmail.com on 18 Dec 2011 at 6:32