小数点以下第2位で四捨五入 $num2 = round($num1,2); echo $num2; これで$num2は小数点第二位まで表示されます。(12.22、5053.35など)