From: Marc Heiler Date: 2010-03-09T21:02:07+09:00 Subject: Re: convert s to i, then + 1 Instead of: num = gets.chomp you can directly do: num = gets.chomp.to_i -- Posted via http://www.ruby-forum.com/.