B
Bob Sanders
I can't find a clue how to convert a hexadecimal number to a binary
number. Anyone know?
number. Anyone know?
=> "1011111011101111"From: "Bob Sanders said:I can't find a clue how to convert a hexadecimal number to a binary
number. Anyone know?
Bob said:I can't find a clue how to convert a hexadecimal number to a binary
number. Anyone know?
etc.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,
Ryan said:
Bob said:Big thanks for the quick reply, Ryan!
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.