【PHP】floor -- 無條件捨去

echo '6 ==> '.floor(6).'<br />';
echo '5.4 ==> '.floor(5.4).'<br />';
echo '5.5 ==> '.floor(5.5).'<br />';
echo '5.6 ==> '.floor(5.6).'<br />';

執行結果:

6 ==> 6
5.4 ==> 5
5.5 ==> 5
5.6 ==> 5