Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:

The example is correct and runs as expected:

>>> Decimal(3.14)
Decimal('3.140000000000000124344978758017532527446746826171875')

Per the Whatsnew3.2 document:
'''
The decimal.Decimal constructor now accepts float objects directly so there in 
no longer a need to use the from_float() method (issue 8257).
'''

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12580>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to