[Python-bugs-list] [ python-Bugs-795506 ] Wrong handling of string
format code for float values.
SourceForge.net
noreply at sourceforge.net
Tue Aug 26 11:13:55 EDT 2003
Bugs item #795506, was opened at 2003-08-26 17:13
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=795506&group_id=5470
Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Fionn Behrens (fionn)
Assigned to: Nobody/Anonymous (nobody)
Summary: Wrong handling of string format code for float values.
Initial Comment:
According to the python2.3 library reference, section
2.2.6.2
( lib/typesseq-strings.html#l2h-205 in the html docs) a
string
can be formatted to output a "numeric value" padded
with leading zeroes or spaces. This works well with
integers, but not at all with float values.
"%02i - %02.2f" % (3, 3.1415)
SHOULD result in: "03 - 03.14"
but DOES result in: "03 - 3.14"
In addition the table of format strings mentions a %F
format (with capitalized f) which is invalid if used.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=795506&group_id=5470
More information about the Python-bugs-list
mailing list