varibles

Brendhan Horne brendhan at bellsouth.net
Wed Sep 20 20:09:04 EDT 2000


Okay another episode of help the newbie.
In the tutorial this example exists:
>>>tax=17.5/100
>>>price= 3.50
>>>price*tax
0.6125
>>>price+_
4.1125
>>>round(_,2)
4.11

What happens is it is off by .0001
instead I get
0.612499999999993
and the rest of it fall of from there I was wondering do they round it off
in the manual for simplicity sake or is the setup changed with 1.6. There is
also the possibility I screwed up.

--
Thanks,
Brendhan




More information about the Python-list mailing list