数字精确仿真(PHP与Excel类似)

时间:2017-09-29 10:52:39

标签: php excel math numbers

我正在将财务电子表格从Excel转换为基于PHP的系统。我有一个精确的问题,因为看起来,Excel和PHP在处理微积分结果方面有很大不同。

https://en.wikipedia.org/wiki/Numeric_precision_in_Microsoft_Excel http://php.net/manual/en/language.types.float.php

示例:从相同的输入数字开始,经过几次迭代,PHP给出1069,22,Excel给出1070,60。

即使Excel的准确性较差,客户也希望像在其中一样模拟数字。

非常感谢任何帮助。

谢谢!

0 个答案:

没有答案