[issue1623] Implement PEP-3141 for Decimal

Jeffrey Yasskin report at bugs.python.org
Sun Dec 16 03:02:22 CET 2007


Jeffrey Yasskin added the comment:

Here's a version of the patch that uses _rescale instead of quantize. I
don't know enough about how contexts are used to know whether someone
might want to know that ceil(Decimal("1e30")) gave a result with more
precision than the input. On the other hand, the error .quantize()
throws is clearly the wrong one, so this is at least an improvement.

Added file: http://bugs.python.org/file8963/decimal_3141.patch

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1623>
__________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: decimal_3141.patch
Type: application/octet-stream
Size: 4261 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-bugs-list/attachments/20071216/d62ff326/attachment.obj 


More information about the Python-bugs-list mailing list