You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2007-12-25.16:41:12.302>created_at=<Date2007-12-25.13:15:01.625>labels= ['interpreter-core', 'invalid', 'performance']
title='Problems with float and "6" type'updated_at=<Date2007-12-25.16:41:12.292>user='https://bugs.python.org/pedrocpneto'
Hi, I am having problems both in the Windows version on the Linux
version of Python as put some number with some 6 type that it always
returns a value me, following examples:
Activity
pedrocpneto commentedon Dec 25, 2007
Problems with float and "6" type
Hi, I am having problems both in the Windows version on the Linux
version of Python as put some number with some 6 type that it always
returns a value me, following examples:
Recalling that the error happens only with the digit 6 in float.
Thanks for attention.
Pedro Clemente Pereira Neto
Brasil
pedrocpneto at gmail.com
tiran commentedon Dec 25, 2007
Your results are correct and expected. You can find more information at:
http://effbot.org/pyfaq/why-are-floating-point-calculations-so-inaccurate.htm
http://en.wikipedia.org/wiki/IEEE_754