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

Here is an explanation for the behavior you're seeing:

   https://docs.python.org/3/tutorial/floatingpoint.html

Here is another famous resource on the subject:

   https://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html

For exact decimal arithmetic, consider using the decimal module:

   https://docs.python.org/3/library/decimal.html#module-decimal

----------
nosy: +rhettinger
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

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

Reply via email to