---------- Forwarded message ---------
Từ: Tung Anh Nguyen <nvta1761999@gmail.com>
Date: Th 2, 17 thg 5, 2021 vào lúc 16:34
Subject: Can you explain to me this confusion?
To: <python-list@python.org>


I'm using Python 3.8.5 on Ubuntu 20.04. I just don't understand these things?

>>> float("8.1")*100
810.0
>>> float("8.2")*100
819.9999999999999 ?
>>> float("8.3")*100
830.0000000000001 ?
>>> float("8.4")*100
840.0

Why is that? Is that a bug? or something I don't know yet? Could you guys answer my question?