千万不能 $tatol = $a + $b + $d… 而是用PHP提供的高精度计算BC函数:bcadd 和bcsub即可,如下 t a t o l = b c a d d ( tatol = bcadd( tatol