[New-bugs-announce] [issue13731] Awkward phrasing in Decimal documentation

Aaron Maenpaa report at bugs.python.org
Sat Jan 7 20:16:46 CET 2012


New submission from Aaron Maenpaa <aaron at maenpaa.ca>:

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.

----------
assignee: docs at python
components: Documentation
files: rephrase.diff
keywords: patch
messages: 150814
nosy: docs at python, zacherates
priority: normal
severity: normal
status: open
title: Awkward phrasing in Decimal documentation
versions: Python 3.3
Added file: http://bugs.python.org/file24165/rephrase.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13731>
_______________________________________


More information about the New-bugs-announce mailing list