一般这种情况在实际额工作中 涉及到价格会出现意想不到的bug 如果 你非要传一个 float 价格(2位小数) 且做了乘积之后需要转为int(奇怪的需求) intval(39.80*100) = 3979 intval(round(floatval($value) * 100)) = 3980