[issue19807] calculation of standard math returns incorrect value
Mark Dickinson
report at bugs.python.org
Wed Nov 27 09:06:08 CET 2013
Mark Dickinson added the comment:
Sorry; this is just the way that (binary) floating-point works. See http://docs.python.org/2/tutorial/floatingpoint.html for more (or Google 'binary floating point' for a host of references).
If you're doing financial calculations, you may want to look into the decimal module: http://docs.python.org/2/library/decimal.html
----------
nosy: +mark.dickinson
resolution: -> invalid
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19807>
_______________________________________
More information about the Python-bugs-list
mailing list