On Apr 15, 11:47 am, Duncan Booth <[EMAIL PROTECTED]> wrote: > Chris <[EMAIL PROTECTED]> wrote: > > even is closer to even.75 than even+1.25. Why should it be rounded > > up ? > > Because the OP wants to round values to the nearest integer. Only values of > the form 'x.5' which have two nearest values use 'nearest even' to > disambiguate the result. > > Seehttp://en.wikipedia.org/wiki/Rounding#Round-to-even_method > > That's the way I was taught to round numbers when at primary school.
My bad, didn't see he only wanted for halves and handle others as normal. -- http://mail.python.org/mailman/listinfo/python-list