Re: how to get a formatted string?

2007-09-04 Thread Gary Herron
Ginger wrote: > like format function in Visual Basic, > format("##.##%",0.3456) ==>> 34.56% > "%5.2f%%" % (0.3456*100) '34.56%' See this section of the manual: http://docs.python.org/lib/typesseq-strings.html Gary Herron -- http://mail.python.org/mailman/listinfo/python-list

how to get a formatted string?

2007-09-04 Thread Ginger
like format function in Visual Basic, format("##.##%",0.3456) ==>> 34.56% -- http://mail.python.org/mailman/listinfo/python-list