This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pedrocpneto
Recipients pedrocpneto
Date 2007-12-25.13:15:00
SpamBayes Score 0.0078191655
Marked as misclassified No
Message-id <1198588501.87.0.184555508194.issue1697@psf.upfronthosting.co.za>
In-reply-to
Content
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:

>>> 2.0
2.0
>>> 1.55
1.55
>>> 1.56
1.5600000000000001
>>> 1.6
1.6000000000000001
>>> 1.63
1.6299999999999999
>>> 1.64
1.6399999999999999
>>> 1.71
1.71
>>> 6.0
6.0

Recalling that the error happens only with the digit 6 in float.
Thanks for attention.

Pedro Clemente Pereira Neto 
Brasil
pedrocpneto at gmail.com
History
Date User Action Args
2007-12-25 13:15:02pedrocpnetosetspambayes_score: 0.00781917 -> 0.0078191655
recipients: + pedrocpneto
2007-12-25 13:15:01pedrocpnetosetspambayes_score: 0.00781917 -> 0.00781917
messageid: <1198588501.87.0.184555508194.issue1697@psf.upfronthosting.co.za>
2007-12-25 13:15:01pedrocpnetolinkissue1697 messages
2007-12-25 13:15:00pedrocpnetocreate