> The round function will do what you want though not quite what you
say you want :-)
>
>   >>> round(15., -1)
> 20.0

Interesting, I didn't remember the second parameter to round...
let alone the fact it could be negative!!

Batteries included once again!

Alan G.

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to