[issue9885] Function Round does not work properly in some conditions

2010-09-17 Thread paontis
paontis added the comment: ok thx very much for the explaination -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue9885] Function Round does not work properly in some conditions

2010-09-17 Thread R. David Murray
R. David Murray added the comment: Please read http://docs.python.org/tutorial/floatingpoint.html Although your case isn't directly covered there, the root cause is the same. Floating point can't exactly represent 10.3. Note that in Python2.7 and 3.x, the repr will be shortened to 10.3,

[issue9885] Function Round does not work properly in some conditions

2010-09-17 Thread paontis
New submission from paontis : For example round(10., 1) returns 10.301 and round(1., 2)returns 1.3301 I exect they return 10.3 and 1.33 rispectively NOTE: other combinations work fine eg. round(10., 2) or round(1., 3) See IDLE commands in the attached f