[issue4061] summing two numbers-strange answer
STINNER Victor
report at bugs.python.org
Tue Oct 7 01:09:09 CEST 2008
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
Use Decimal to get an exact result:
>>> from decimal import Decimal
>>> print Decimal('2.3') + Decimal('6.3')
8.6
----------
nosy: +haypo
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4061>
_______________________________________
More information about the Python-bugs-list
mailing list