From: Robert Klemme Date: 2007-01-15T04:10:07+09:00 Subject: Re: how to translate base 10 number into base 2 number On 14.01.2007 19:25, Uma Geller wrote: > TAWLWTDIT > > [0xFF].pack("c").unpack("b8") > > there's a whole lotta ways to do it :-) Since we start collecting solutions... irb(main):001:0> "%b" % 16 => "10000" :-) robert