Message244011
Doc for 3.4: at 6.1.3.1. Format Specification Mini-Language
indicates that:
"The precision is a decimal number indicating how many digits should be displayed after the decimal point for a floating point value"
Yet I find that I get this behavior:
Python 3.4.3 (default, Mar 26 2015, 22:03:40)
[GCC 4.9.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> '{:08.3}'.format(12.34)
'000012.3'
When what I am expecting is: '0012.340' |
|
Date |
User |
Action |
Args |
2015-05-25 03:47:41 | jluscher | set | recipients:
+ jluscher, docs@python |
2015-05-25 03:47:41 | jluscher | set | messageid: <1432525661.76.0.778289488929.issue24281@psf.upfronthosting.co.za> |
2015-05-25 03:47:41 | jluscher | link | issue24281 messages |
2015-05-25 03:47:40 | jluscher | create | |
|