[Tutor] string format float omitting decimal point?
Jeff Kowalczyk
jtk at yahoo.com
Tue Sep 16 12:44:34 EDT 2003
Is there a way to omit a decimal point directly in float string formatting?
>>> ('%0.2f' % 23.06).replace('.','')
'2306'
More information about the Tutor
mailing list