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
Type: behavior Stage: resolved
Components: ctypes Versions: Python 3.5
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: mukhit, steven.daprano
Priority: normal Keywords:

Created on 2018-01-22 09:29 by mukhit, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg310406 - (view) Author: Mukhit (mukhit) Date: 2018-01-22 09:29
print (10*3.14)

31.400000000000002
msg310414 - (view) Author: Steven D'Aprano (steven.daprano) * (Python committer) Date: 2018-01-22 10:36
This is not a bug, it is a FAQ to do with the properties of binary floating point numbers.


https://docs.python.org/3/faq/design.html#why-are-floating-point-calculations-so-inaccurate
History
Date User Action Args
2022-04-11 14:58:56adminsetgithub: 76800
2018-01-22 10:36:53steven.dapranosetstatus: open -> closed

nosy: + steven.daprano
messages: + msg310414

resolution: not a bug
stage: resolved
2018-01-22 09:29:42mukhitcreate