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
そんなことがあるものか?