Re: Where is the correct round() method? Use math.ceil

2008-07-28 Thread Maric Michaud
Le Monday 28 July 2008 02:35:08 Herman, vous avez écrit : > Where is the correct round() method? > Hello, > > I need a round function that _always_ rounds to the higher integer if > the argument is equidistant between two integers. In Python 3.0, this > is not the advertised behavior of the buil

Re: Where is the correct round() method? Use math.ceil

2008-07-27 Thread Herman
> > Where is the correct round() method? > Hello, > > I need a round function that _always_ rounds to the higher integer if > the argument is equidistant between two integers. In Python 3.0, this > is not the advertised behavior of the built-in function round() as > seen below: > > >>> round(0.5) >