We need to be accurate to two decimal places (e.g. in a simple accounting package), scale everything up by 100, and convert it back to floating point as late as possible.
我们处理小数的时候要精心些,比方说我们在做一个简单的统计程序时,要限制结果不能超过100,要尽可能晚的把它转化成浮点数。
SOAPpy, since version 0.10.3, depends on the IEEE 754 floating point handler package fpconst (currently version 0.6.0).
版本之后的SOAPpy还要依赖于IEEE 754浮点处理程序包fpconst(当前版本0.6.0)。
应用推荐