>>>>> "S" == Steve Tuckner <SAT / MULTITECH.com> writes:

S> "0xF0".to_i        # have it handle leading 0x for hex or 0 for octal
 
 #oct do this

pigeon% ruby -e 'p "0xF0".oct; p "0755".oct; p "0b1111011".oct'
240
493
123
pigeon% 

 #to_i is you want a base 10



Guy Decoux