Hi -- On Tue, 28 Feb 2006, Gregor Kopp wrote: > 1.) if you do a .to_i to num, you dont need to chomp it. > 2.) if you make 'num'.to_i you try to transform the string num into integer. > it should be num.to_i, because you want the value of num and not "num". > 3.) #{expression} in string will be replaced with its value in that string. > try And of course there's always: puts "What's you're favorite number?" puts "This is better: #{gets.to_i + 1}" :-) David -- David A. Black (dblack / wobblini.net) Ruby Power and Light (http://www.rubypowerandlight.com) "Ruby for Rails" chapters now available from Manning Early Access Program! http://www.manning.com/books/black