<?
echo round(4.725, 2).'<br>';
echo round(141.075,2).'<br>';
echo round(3/2,0).'<br>';
echo round((52.2601+52.2602)/2,4).'<br>';
?>
echo round(4.725, 2).'<br>';
echo round(141.075,2).'<br>';
echo round(3/2,0).'<br>';
echo round((52.2601+52.2602)/2,4).'<br>';
?>
用mysql计算,就没有问题,莫非mysql比php计算还要强?
5.2.7 The inner workings of round() was changed to conform to the C99 standard.