For example, 0.1 cannot be represented binary, and therefore is rounded when stored in a double. Let me show you using python.
比如0.1不能被表示为二进制数,所以被四舍五入储存为双精度浮点数。
For example, 0.1 cannot be represented binary, and therefore is rounded when stored in a double. Let me show you using python.
比如0.1不能被表示为二进制数,所以被四舍五入储存为双精度浮点数。
应用推荐