From: Tom Felker Date: 2003-07-04T04:33:38+09:00 Subject: Re: Base of Numbers On Thu, 2003-07-03 at 12:56, zunda wrote: > Hello, > > > |Cool. Is there a way to from a string to an int with any base? > > > > String#to_s(base=10) > > or > > String#to_i(base=10)? > > % ruby -ve 'puts "100".to_i(base=16)' > ruby 1.8.0 (2003-07-02) [i686-linux] > 256 > > Best regards, > zunda Thanks. Soon I'll upgrade, and I'll have ri to help me. -- Tom Felker