% format strings

grv575 grv575 at hotmail.com
Mon Aug 23 18:55:31 EDT 2004


For a string like print '%.*f' % (prec_length, float_var)
How does python convert this to a C printf sytle format string?  Is
there a way to specify the precision length for floating points in C
format strings?



More information about the Python-list mailing list