From: Lloyd Linklater Date: 2007-10-26T02:59:15+09:00 Subject: Re: Change a string to an integer, report an error if the st One caveat is that integers can have alpha characters in the string, e.g. hex. p '2a'.to_i(16) # => 42 -- Posted via http://www.ruby-forum.com/.