On Fri, 30 Jan 2009 00:24:47 -0500, D'Arcy J.M. Cain wrote: > On Thu, 29 Jan 2009 16:06:09 -0800 > "todp...@hotmail.com" <todp...@hotmail.com> wrote: >> How can you make python round numbers to the nearest 5: >> >> Example: >> >> 3 => 0 >> 8 => 10 >> 23.2 => 20 >> 36 => 35 >> 51.5 => 50 > > That appears to be rounding to nearest 10, not 5. Clarify your > requirements first.
Look again. 36 => 35. -- Steven -- http://mail.python.org/mailman/listinfo/python-list