阅读背景:

浮点数学在不同的编程语言

来源:互联网 

I know that floating point math can be ugly at best but I am wondering if somebody can explain the following quirk. In most of the programing languages I tested the addition of 0.4 to 0.2 gave a slight error, where as 0.4 + 0.1 + 0.1 gave non. I know that floating point math can be ugly at




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: