Python:为什么4.1-0.1 = 3.9999 ...但5.1-0.1 = 5

时间:2018-10-30 16:36:25

标签: python math floating-point language-agnostic floating-accuracy

两个计算中都不会出现浮点误差吗?为什么错误会在5.1-0.1中丢失?

enter image description here

0 个答案:

没有答案