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: Unexpected Arithmetic Result
Type: behavior Stage: resolved
Components: Interpreter Core Versions: Python 3.7
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: chengxuncc, mark.dickinson
Priority: normal Keywords:

Created on 2018-09-16 11:05 by chengxuncc, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg325478 - (view) Author: chengxuncc (chengxuncc) Date: 2018-09-16 11:05
>>> 2359296/10/1000**2

>>> 2359296/10000000

You can see it.
msg325479 - (view) Author: Mark Dickinson (mark.dickinson) * (Python committer) Date: 2018-09-16 11:14
This isn't a bug; it's a result of Python using the hardware-provided binary floating-point, which can't represent all decimal numbers exactly.

Please take a look at for more information.
Date User Action Args
2022-04-11 14:59:06adminsetgithub: 78884
2018-09-16 11:14:11mark.dickinsonsetstatus: open -> closed

nosy: + mark.dickinson
messages: + msg325479

resolution: not a bug
stage: resolved
2018-09-16 11:05:14chengxuncccreate