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.

Title: Floating Point Printing Error with 2+.8553 or 3+.8553
Type: behavior Stage: resolved
Components: Interpreter Core Versions: Python 3.4, Python 2.7
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: Seth Norton, r.david.murray
Priority: normal Keywords:

Created on 2016-05-23 20:44 by Seth Norton, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg266183 - (view) Author: Seth Norton (Seth Norton) Date: 2016-05-23 20:44
In a basic command line interpreter, adding 2 or 3 to .8553 will cause the result to be displayed as if a rounding error occurred. The number is so small that I expect it is not a mathematical error but rather in how the number is printed.

The displayed answer is 2.8552999999999997.

This also occurs in python 2.7.4. I am running Ubuntu 14.04 (64-bit).
msg266185 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2016-05-23 21:13
Date User Action Args
2022-04-11 14:58:31adminsetgithub: 71281
2016-05-23 21:13:50r.david.murraysetstatus: open -> closed

nosy: + r.david.murray
messages: + msg266185

resolution: not a bug
stage: resolved
2016-05-23 20:45:16Seth Nortonsetversions: + Python 2.7
2016-05-23 20:44:13Seth Nortoncreate