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 skrah
Recipients facundobatista, mark.dickinson, rhettinger, skrah
Date 2010-04-27.09:53:53
SpamBayes Score 0.03370617
Marked as misclassified No
Message-id <1272362038.05.0.870798753745.issue8540@psf.upfronthosting.co.za>
In-reply-to
Content
(1) Perhaps I missed the relevant part in the spec, so I had to check
what decNumber does: In the default context, clamp is 0, in the extended
contexts, it is 1. So Python's ExtendedContext should indeed set _clamp
to 1.


(2) I agree about the importance of the formats, and I think they should
be explicitly selectable like here:

http://java.sun.com/j2se/1.5.0/docs/api/java/math/class-use/MathContext.html

The current ExtendedContext is a bit of a vague concept, since it
should be exactly one of DECIMAL32, DECIMAL64 or DECIMAL128. And
none of these has prec=9.
History
Date User Action Args
2010-04-27 09:53:58skrahsetrecipients: + skrah, rhettinger, facundobatista, mark.dickinson
2010-04-27 09:53:58skrahsetmessageid: <1272362038.05.0.870798753745.issue8540@psf.upfronthosting.co.za>
2010-04-27 09:53:53skrahlinkissue8540 messages
2010-04-27 09:53:53skrahcreate