From: Matthew Moss Date: 2008-10-28T00:16:55+09:00 Subject: Re: format an integer On Oct 27, 2008, at 10:11 AM, Me Me wrote: > Hi, > this is a pretty silly question but I cannot figure it how to do. > I need to format an integer in order to have always two digits: > > ex: > 1 => 01 > 22 => 22 > > How can I do that in the shortest way possible? > Thanks in advance "%02d" % num