[Python-bugs-list] [Bug #117305] Limited precision enter 3.14 you get 3.1400000000000001
noreply@sourceforge.net
noreply@sourceforge.net
Thu, 19 Oct 2000 20:06:21 -0700
Bug #117305, was updated on 2000-Oct-19 15:44
Here is a current snapshot of the bug.
Project: Python
Category: Documentation
Status: Closed
Resolution: Fixed
Bug Group: None
Priority: 5
Summary: Limited precision enter 3.14 you get 3.1400000000000001
Details: Just downloaded version 2.0
This is my first day, so I have no experience with Python at all.
I don't know if this is a bug, but according to the online docs
x = 10 * 3.14 should give me 31.4 not 31.400000000000002.
Follow-Ups:
Date: 2000-Oct-19 20:06
By: fdrake
Comment:
This is a function of the inherant behavior of floating point operations rather than a bug in the implementation. This does, however, reflect a point on which the documentation is slightly out of date; the full precision of floating point values used to not be reported at the interactive prompt.
The Tutorial is updated as Doc/tut/tut.tex revision 1.119.
-------------------------------------------------------
For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=117305&group_id=5470