22/7

我使用Linux浏览器(Firefox和Chrome)和Linux bc程序进行计算并获得不同的结果,有人可以解释为什么吗?

浏览器输出:

22/7 .. = 3.1428571428571427937015414499910548329353332519531250000000000000 1/7 .. = 0.1428571428571428492126926812488818541169166564941406256250000000000

代码:var x = parseFloat(22/7).toFixed(64);

acerI7 kflee#bc -i -l BC 1.06.95 版权所有1991-1994,1997,1998,2000,2004,2006 Free Software Foundation,Inc. 这是绝对没有担保的免费软件。 有关详细信息,请输入“保修”。

scale = 65

1/7 .14285714285714285714285714285714285714285714285714285714285714285

22/7 3.14285714285714285714285714285714285714285714285714285714285714285

tingting04 回答:22/7

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3162438.html

大家都在问