From: Vlad GALU Date: 2006-05-23T23:32:24+09:00 Subject: Re: Format strings ? On 5/23/06, Tim Becker wrote: > On 5/23/06, Vlad GALU wrote: > > Having an int object, let's say the value is 2, I'd like to print > > it out as "0002". I miss C's format strings. > > printf "%04d", 2 > > Ruby has format strings! > -tim Thank you all! I noticed soon after I posted the question *blush* :) > > -- If it's there, and you can see it, it's real. If it's not there, and you can see it, it's virtual. If it's there, and you can't see it, it's transparent. If it's not there, and you can't see it, you erased it.