I'm converting a financial spreadsheet from Excel to a PHP-based system. I have an issue with precision because, it seems, Excel and PHP are pretty different on how they handle results of calculus.
https://en.wikipedia.org/wiki/Numeric_precision_in_Microsoft_Excel http://php.net/manual/en/language.types.float.php
Example: Going from the same input numbers, after several iterations PHP gives 1069,22 and Excel gives 1070,60.
Even if Excel has worse accuracy, the client wants the numbers to be emulated like in it.
Any help is greatly appreciated.
Thanks!