[Tutor] Hummm...dubious behavior.

Jean Montambeault jrm@videotron.ca
Sat, 15 Dec 2001 16:10:28 +0200


----- Original Message -----
From: "Tim Peters" <tim.one@home.com>
>
> This example in the tutorial has also been changed, but in a devious way,
to
> use numbers that happen to display in a prettier way:

    Yah! It's going to give a bad name to the concept of deviance ;)

>
> >>> tax = 12.5 / 100
> >>> price = 100.50
> >>> price * tax
> 12.5625
> >>> price + _
> 113.0625
> >>> round(_, 2)
> 113.06
> >>>
>
>
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor