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 mdealencar
Recipients mark.dickinson, mdealencar, skrah
Date 2014-02-04.11:42:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1391514123.03.0.704098165487.issue20502@psf.upfronthosting.co.za>
In-reply-to
Content
According to the docs (http://docs.python.org/3/library/decimal.html):

"The decimal module incorporates a notion of significant places so that 1.30 + 1.20 is 2.50. The trailing zero is kept to indicate significance. This is the customary presentation for monetary applications. For multiplication, the “schoolbook” approach uses all the figures in the multiplicands. For instance, 1.3 * 1.2 gives 1.56 while 1.30 * 1.20 gives 1.5600."

Therefore, if I request 2 digits of precision, I expect 2 digits in the output.

In addition, the docs assert that "Decimal numbers can be represented exactly", which leaves me lost about you argument on whether some number is *exactly representable* or not.
History
Date User Action Args
2014-02-04 11:42:03mdealencarsetrecipients: + mdealencar, mark.dickinson, skrah
2014-02-04 11:42:03mdealencarsetmessageid: <1391514123.03.0.704098165487.issue20502@psf.upfronthosting.co.za>
2014-02-04 11:42:03mdealencarlinkissue20502 messages
2014-02-04 11:42:02mdealencarcreate