$n = 1223.62; $n1 = 12232.62; echo floor($n * 100)/100;//1223.61 echo '<br>'; echo floor($n1 * 100)/100;//12232.62
求问$n和$n1的小数点为什么相差0.01?
因为浮点数存在精度误差