This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author zacherates
Recipients docs@python, zacherates
Date 2012-01-07.19:16:45
SpamBayes Score 0.010031886
Marked as misclassified No
Message-id <1325963806.67.0.168164997308.issue13731@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-01-07 19:16:46zacheratessetrecipients: + zacherates, docs@python
2012-01-07 19:16:46zacheratessetmessageid: <1325963806.67.0.168164997308.issue13731@psf.upfronthosting.co.za>
2012-01-07 19:16:46zacherateslinkissue13731 messages
2012-01-07 19:16:46zacheratescreate