On Sat, 9 Aug 2008 04:31:38 -0700 (PDT), Will Rocisky <[EMAIL PROTECTED]> wrote:
>I want my 76.1 to be rounded to decimal 80 and 74.9 to decimal 70.
>How can I achieve that?
>>> for n in (74.9, 76.1):
print int((n+5)/10)*10
70
80
Dan
--
http://mail.python.org/mailman/listinfo/python-list
