From: Bob Sanders Date: 2008-05-30T20:44:48+09:00 Subject: Re: How do you convert a hexadecimal number to a binary numb Ryan Lewis wrote: > Bob Sanders wrote: >> I can't find a clue how to convert a hexadecimal number to a binary >> number. Anyone know? > > From http://www.tek-tips.com/viewthread.cfm?qid=1026407&page=1 > > You have to convert items using methods such as String#to_i(base=10) > > and Fixnum#to_s(base=10). These would be for decimal values. Change > > to (base=16) for hexadecimal values, (base=2) for binary values, > etc. Big thanks for the quick reply, Ryan! -- Posted via http://www.ruby-forum.com/.