From: Todd Benson Date: 2007-05-06T23:25:15+09:00 Subject: Re: Simple Q: bit string -> integer --- Harry Kakueki wrote: > Try this > > str = "10010000" > p str.to_i(2) > puts > p 255.to_s(16) > p 255.to_s(2) > > Harry Yes, thanks a bunch. For some reason, #to_i was the last place I thought to look. Todd __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com