Message140535
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).
''' |
|
Date |
User |
Action |
Args |
2011-07-17 19:07:50 | rhettinger | set | recipients:
+ rhettinger, georg.brandl, holdenweb, skrah |
2011-07-17 19:07:50 | rhettinger | set | messageid: <1310929670.72.0.668489756327.issue12580@psf.upfronthosting.co.za> |
2011-07-17 19:07:50 | rhettinger | link | issue12580 messages |
2011-07-17 19:07:50 | rhettinger | create | |
|