From: ts Date: 2001-08-10T00:13:08+09:00 Subject: [ruby-talk:19437] Re: Simple Question 2 >>>>> "S" == Steve Tuckner 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