Bryan Fodness wrote: > > Is there a built-in function that will round to the nearest 0.5?
Not that I know of, but "round( 2 * n ) / 2" will give you what you're looking for. > ------------------------------------------------------------------------ > > _______________________________________________ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor