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: multiplication error 2.2 and 2.1
Type: behavior Stage: resolved
Components: Versions:
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: jzradom, zach.ware
Priority: normal Keywords:

Created on 2022-02-04 20:26 by jzradom, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg412532 - (view) Author: Br Km (jzradom) Date: 2022-02-04 20:26
Python 3.6.9 (default, Dec  8 2021, 21:08:43) 
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 2.2 * 2.1
4.620000000000001
>>>
msg412534 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2022-02-04 20:33
See https://docs.python.org/3/tutorial/floatingpoint.html.

Your computer thinks in base 2 rather than base 10, unless you ask it nicely (https://docs.python.org/3/library/decimal.html) :)
History
Date User Action Args
2022-04-11 14:59:55adminsetgithub: 90799
2022-02-04 20:33:05zach.waresetstatus: open -> closed

type: compile error -> behavior
versions: - Python 3.10
nosy: + zach.ware

messages: + msg412534
resolution: not a bug
stage: resolved
2022-02-04 20:26:32jzradomcreate