% format strings

grv575 grv575 at hotmail.com
Tue Aug 24 00:55:31 CEST 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