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.

classification
Title: incorrect addition of floating point numbers
Type: behavior Stage:
Components: Versions: Python 2.7
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: bartgee, benjamin.peterson
Priority: normal Keywords:

Created on 2014-12-13 02:34 by bartgee, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg232586 - (view) Author: Bart Grzybicki (bartgee) Date: 2014-12-13 02:34
Python 2.7.6 (default, Mar 22 2014, 22:59:56) 
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 115.26 + 2.01
117.27000000000001
>>> 115.26 + 2.02
117.28
>>> 115.27 + 2.01
117.28
>>>
msg232587 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2014-12-13 02:35
Welcome to base 2. https://docs.python.org/2/tutorial/floatingpoint.html
History
Date User Action Args
2022-04-11 14:58:11adminsetgithub: 67233
2014-12-13 02:35:10benjamin.petersonsetstatus: open -> closed

nosy: + benjamin.peterson
messages: + msg232587

resolution: not a bug
2014-12-13 02:34:21bartgeecreate