Thufir wrote: > I'm getting keyboard input successfully, but I'm getting a string. I > need to convert it to a number. But ruby is a dynamic language? > What's happening please? > ><snip -- too much to read through> > Look at this and see if it helps: print "Enter an integer: " str_int = gets print "Enter a float: " str_float = gets the_int = str_int.to_i the_float = str_float.to_f puts the_int + the_float -- Posted via http://www.ruby-forum.com/.