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

paontis report at bugs.python.org
Fri Sep 17 13:36:19 CEST 2010


New submission from paontis <paoregs at gmail.com>:

For example round(10.3333, 1) returns 10.300000000000001 and round(1.3333, 2)returns 1.3300000000000001

I exect they return 10.3 and 1.33 rispectively

NOTE: other combinations work fine eg. round(10.3333, 2) or round(1.3333, 3)

See IDLE commands in the attached file round.txt

Used Python 2.6.6 for Windows

----------
files: round.txt
messages: 116656
nosy: paontis
priority: normal
severity: normal
status: open
title: Function Round does not work properly in some conditions
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file18908/round.txt

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9885>
_______________________________________


More information about the Python-bugs-list mailing list