[New-bugs-announce] [issue1559] round() does not

travelgirl report at bugs.python.org
Wed Dec 5 20:58:11 CET 2007

New submission from travelgirl:

http://docs.python.org/tut/node5.html states, as an example, round(_, 2)
should round to the second decimal place.  makes sense.  when i
attempted it with different numbers, round() returned what looks like a
binary-coded decimal error (see the jpg enclosed), and did not return
just two digits, but 15 digits.  the same error was produced for
round(_, 3).  when the number was changed to 1 digit, the return result
rounded from another direction.

i'd guess this isn't a feature :)

components: Windows
files: python bug.jpg
messages: 58225
nosy: travelgirl
severity: normal
status: open
title: round() does not
type: behavior
versions: Python 2.5
Added file: http://bugs.python.org/file8882/python bug.jpg

Tracker <report at bugs.python.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python bug.jpg
Type: image/jpeg
Size: 11810 bytes
Desc: not available
Url : http://mail.python.org/pipermail/new-bugs-announce/attachments/20071205/25f720ab/attachment.jpg 

More information about the New-bugs-announce mailing list