floor 捨去法取整 語法格式:float floor ( float value )
返回不大於value 的下一個整數
echo floor(
echo floor(
ceil 進一法取整 語法格式: float ceil ( float value )
返回不小於value 的下一個整數
echo ceil(
echo ceil(
round 對浮點數進行四捨五入
語法:float round ( float val [
echo round(
echo round(
echo round(
echo round(
echo round(
echo round(
echo round(
echo round(
From:http://tw.wingwit.com/Article/program/PHP/201311/21147.html