From: Joey Date: 2006-05-29T20:28:44+09:00 Subject: Re: Equivalent of Python zfill? ------=_Part_83400_29476443.1148902121545 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline ZEROES =3D Array.new(100){|i|"0"*i} or ZEROES =3D Hash.new{|k,v|k[v]=3D"0"*v} j`ey http://www.eachmapinject.com c,r=3D0,32;while r!=3D0;((c+=3D1)>31)?(c=3D0;r-=3D1; puts):print(c