file-writing:formatting
Erik Max Francis
max at alcyone.com
Fri Dec 13 17:18:30 EST 2002
Christoph Lehmann wrote:
> now, if one of the floats is e.g. 0.01 the others 1234.12 I get
>
> 0.01 2345.14
> 1234.12 2345.45
>
> so what can I do, that i get
>
> 0000.01 2345.14
> 1234.12 2345.45
Use '%07.2f' as a format specifier.
--
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/ \ Triumph cannot help being cruel.
\__/ Jose Ortega y Gasset
Max Pandaemonium / http://www.maxpandaemonium.com/
A sampling of Max Pandameonium's music.
More information about the Python-list
mailing list