PHP Версия 5.3.6
Пример
<?php
$timeStart = microtime(true);
// some code ...
$timeExecution = microtime(true) - $timeStart;
$time = round($timeExecution, 2);
file_put_contents('h:/round.txt', $timeExecution . ' = ' . $time . "\n", FILE_APPEND);
?>
Файл round.txt содержит следующие строки:
131.3048491477966 = 131,3
8,340715885162354 = 8,34
8.198318004608154 = 8.199999999999999
как это возможно?