当然,这并不总是可能的,但您应该意识到要限制浮点数比较。
This is, of course, not always possible, but you should be aware of the limitations of floating point comparison.
可以被联合的节点数目没有限制。
There is no limit to the number of nodes that can be syndicated to.
我们处理小数的时候要精心些,比方说我们在做一个简单的统计程序时,要限制结果不能超过100,要尽可能晚的把它转化成浮点数。
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.
应用推荐