From: Florian Frank Date: 2007-05-06T23:37:43+09:00 Subject: Re: Simple Q: bit string -> integer Todd Benson wrote: > Is there a simple way to induce a bit string into an > integer; for example, "10010000" into 144? "10010000".to_i(2) > And also, > to show a Fixnum in its different representations > (hex, num, binary)? 144.to_s(16), 144.to_s(2) But what's "num"? -- Florian Frank