问一个FLOAT的问题
//$usec:当前微秒数,$sec:当前秒数
list ( $usec, $sec ) = explode ( ' ', microtime () );
$time1 = ( float ) $usec + ( float ) $sec;
list ( $usec, $sec ) = explode ( ' ', microtime () );
$time2 = ( float ) $usec + ( float ) $sec;
echo $time2 - $time1;
结果输出一个类似这样的数:3.40938568115E-5
问题:
单独打印$usec和$sec,输出这样的数:0.95312700 1326693637
$time输出类似这样的数:1326693637.95
那为什么用$time1-$time2输出成了“3.40938568115E-5 ”???
谢谢
------解决方案--------------------