From: Ben Bleything Date: 2006-11-19T10:56:46+09:00 Subject: Re: Add a zero on single digit numbers On Sun, Nov 19, 2006, mind2motion@gmail.com wrote: > Is there any way add a 0 onto the front of a Fixnum? Sure: num = 7 printf('%02d', num) You can use #sprintf instead if you want to assign that back to a variable. That said, Timothy's suggestion of using #strftime is a much better solution to your problem... it's just valuable to know about #(s)printf in general. Ben