From: Steve Klabnik Date: 2011-07-18T22:18:42+09:00 Subject: Re: Ruby output formater I personally find % cleaner than printf: puts "%03d" % val