[issue22917] Calculating problem

2014-11-22 Thread heme
heme added the comment: Thank you I understand that it is not always that you see what you get (GW basic has shurely cut off the big precision, and Python doesnt, so I see the small difference. I will take care of thinking of it next time! Sorry for any inconvience. brg Henning Mark Law

[issue22917] Calculating problem

2014-11-22 Thread Mark Lawrence
Mark Lawrence added the comment: https://docs.python.org/3/tutorial/floatingpoint.html -- nosy: +BreamoreBoy ___ Python tracker ___ __

[issue22917] Calculating problem

2014-11-22 Thread heme
heme added the comment: Hi SilentGhost Thanx for a quick response. Sorry to hear that it is not a bug, my old GW basic interpretor from 1988 has no problem with this simple calculation (123.56 - 62.12 = 61.44) but my new Python interpreter cannot give me a correct answer. Yes, I know about

[issue22917] Calculating problem

2014-11-22 Thread SilentGhost
SilentGhost added the comment: Hi Henning, this is not a bug. This is to do with how floating point numbers represented in computers. I'd suggest https://en.wikipedia.org/wiki/IEEE_floating_point as a starting point. Briefly, due to binary base that the computers operate on, not every number

[issue22917] Calculating problem

2014-11-22 Thread heme
New submission from heme: Hi guys I am very new to this, (just started my first lines today) so I am using a book to learn Python. BUT there is something wrong: This is my program (from the book): # This is not quite true outside of USA # and is based on my dim memories of my younger years