[New-bugs-announce] [issue10101] a bug in built-in function round() ?

Retro report at bugs.python.org
Thu Oct 14 14:55:18 CEST 2010

New submission from Retro <vinetouu at gmail.com>:

>>> round(1.255, 2)

A bug in Python interpreter?

Shold have been:

>>> round(1.255, 2)

In mathematics, the .5 part is always rounded up, so in the example the .255 should be rounded to .26 so please fix this bug.

components: Library (Lib)
messages: 118659
nosy: Retro
priority: normal
severity: normal
status: open
title: a bug in built-in function round() ?
type: behavior
versions: Python 2.7, Python 3.1, Python 3.2

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list