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: calculation wrong rounding
Type: Stage:
Components: macOS Versions:
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: jackjansen Nosy List: buzz42, jackjansen, tim.peters
Priority: normal Keywords:

Created on 2004-12-20 18:29 by buzz42, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg23785 - (view) Author: Sebastian Rockel (buzz42) Date: 2004-12-20 18:29
I am using python 2.4 on MAC OS 10.3.7 with gcc V3.3 20030304 
(Apple Computer, Inc. build 1666)

It is a simple calculation. There seems to be a little rounding 
>>> 4053020.7+10*324241.6

It shoult be of course 7295436.7

msg23786 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2004-12-20 19:09
Logged In: YES 

Please read the Appendix about floating-point issues in the 
Python Tutorial -- what you're seeing is an unavoidable 
consquence of using binary floating-point hardware.  If you 
require exact decimal representations, use the new 
``decimal`` module intead.
Date User Action Args
2022-04-11 14:56:08adminsetgithub: 41349
2004-12-20 18:29:34buzz42create