[issue38025] format

Eric V. Smith report at bugs.python.org
Wed Sep 4 07:12:33 EDT 2019


Eric V. Smith <eric at trueblade.com> added the comment:

When you convert the integer to a float (because of the 'f' in the first format spec), you're losing precision. See:

https://docs.python.org/3/tutorial/floatingpoint.html and https://docs.python.org/3/faq/design.html#why-are-floating-point-calculations-so-inaccurate

----------
nosy: +eric.smith
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38025>
_______________________________________


More information about the Python-bugs-list mailing list