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 built-in
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)
0