From: Thomas Link Date: 2003-12-10T22:17:06+09:00 Subject: ruby 1.8.0: Error on "%02d" % "08" or "%02d" % "09" Hi, I'm using ruby 1.8.0 (Win native and cygwin version). These two commands "%02d" % "08" "%02d" % "09" result in the error `%': invalid value for Integer: "08" (ArgumentError) For other numbers/strings (including "8" and "9", but also "01".."07", it appears to work as expected -- i.e., as I would expect it. The problem, I want to solve: Turn strings like "1", "3", "04", "03" into a canonical 2-digit string with zeros in front. Should I use a different method? Cheers, Thomas.