Message150814
The paragraph: "The exactness carries over into arithmetic. In decimal floating point, 0.1 + 0.1 + 0.1 - 0.3 is exactly equal to zero. In binary floating point, the result is 5.5511151231257827e-017. While near to zero, the differences prevent reliable equality testing and differences can accumulate. For this reason, decimal is preferred in accounting applications which have strict equality invariants."
... has some awkward phrasing to my ear. I've attached a patch with a proposed alternative. |
|
Date |
User |
Action |
Args |
2012-01-07 19:16:46 | zacherates | set | recipients:
+ zacherates, docs@python |
2012-01-07 19:16:46 | zacherates | set | messageid: <1325963806.67.0.168164997308.issue13731@psf.upfronthosting.co.za> |
2012-01-07 19:16:46 | zacherates | link | issue13731 messages |
2012-01-07 19:16:46 | zacherates | create | |
|