Florian Frank
5/6/2007 2:38:00 PM
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