[issue7630] Strange behaviour of decimal.Decimal

Mark Dickinson report at bugs.python.org
Mon Jan 4 10:09:13 CET 2010


Mark Dickinson <dickinsm at gmail.com> added the comment:

It might also help to note that, with decimal, what you see (from repr() of a Decimal instance) is *exactly* what you get.  So when you see

>>> dec
Decimal('1.797693134862315907729305191E+308')

that number really is exactly what's stored in dec:  there are no 'hidden'  digits waiting to appear.

----------

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


More information about the Python-bugs-list mailing list