I\'m create a new PHPExcel object into one of my projects and whats odd is how some float functions behave after the library is included.
Take for example the round>
This comes down to PHPExcel modifying the php.ini precision
setting in its calculation engine. You can override this yourself:
echo round(90.00 + 9.71, 2); // outputs 99.71
$savedPrecision = ini_get('precision');
$sheet = new \PHPExcel();
ini_set('precision', $savedPrecision);
echo round(90.00 + 9.71, 2); // outputs 99.71
or alternatively, use sprintf() or number_format() when you echo float values to get the number of decimals that you want to display