在二进制浮点中,0.1和0.2都不能精确表示
具体为什么,可以点击阅读原文看这篇文章:Why 0.1 Does Not Exist In Floating-Point - Exploring Binary
往期推荐: