[New-bugs-announce] [issue20811] str.format for fixed width float can return a string longer than the maximum specified

aubmoon report at bugs.python.org
Fri Feb 28 22:53:49 CET 2014


New submission from aubmoon:

"{:+10.8}".format(0.12345678)

returns

'+0.12345678' (11 chars)

should return

'+.12345678' (10 chars)

----------
messages: 212478
nosy: aubmoon
priority: normal
severity: normal
status: open
title: str.format for fixed width float can return a string longer than the maximum specified
type: behavior
versions: Python 3.3

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


More information about the New-bugs-announce mailing list