可以看到 2222 没有输出 数值 b 不是0 而是 -7.450581e -9 猜想有可能是float 精度太低了,我换成double 试下 结果还是一样,只是小数位数多了一些 如果要保证浮点值运算准确必须使用 decimal