Mark Dickinson added the comment:
If you're after a particular string representation, you'll probably find that
string formatting meets your needs.
Python 3.3.3 (default, Nov 24 2013, 14:34:37)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.2.79)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from decimal import Decimal
>>> x = Decimal('3.3')
>>> x
Decimal('3.3')
>>> "{:.4f}".format(x) # string representation with 4 digits after the point.
'3.3000'
Reclosing this issue. If you want to pursue your proposal, please open a
separate issue for that rather than reopening this one. Thanks!
----------
resolution: -> invalid
status: open -> closed
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue20502>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com