[issue7628] round() doesn't work correctly in 3.1.1

2010-01-03 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue7628] round() doesn't work correctly in 3.1.1

2010-01-03 Thread bkovt
bkovt added the comment: All right, round() in 3.1 uses 'Round half to even' instead of 'Round half up'. In fact, now I can see this clearly explained in 3.1 documentation. Thanks for the quick reply and sorry for the erroneous bug entry! -- ___ Py

[issue7628] round() doesn't work correctly in 3.1.1

2010-01-03 Thread Tim Peters
Tim Peters added the comment: Note that round() is implemented much more carefully in Python 3.x than in Python 2.x, and 120 is actually the correct result under nearest/even rounding (125 is exactly halfway between representable values when rounded to the closest 10, and nearest/even roundin

[issue7628] round() doesn't work correctly in 3.1.1

2010-01-03 Thread R. David Murray
Changes by R. David Murray : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue7628] round() doesn't work correctly in 3.1.1

2010-01-03 Thread bkovt
New submission from bkovt : round(125, -1) produces 120 in Python 3.1.1. It produces 130.0 in 2.6.4. -- messages: 97186 nosy: bkovt severity: normal status: open title: round() doesn't work correctly in 3.1.1 type: behavior versions: Python 3.1 ___ Py