I have learned that you can turn a number to octal (or whatever) this
way:

p 123.to_s(8).to_i
=> 173

I seem to recall that there is something which will read *in* a number
in an arbitrary numeric base, though I forget just how to do that.

My question is, where is this and things like it documented?  I have
searched several books to no avail.
-- 
Posted via http://www.ruby-forum.com/.