You didn't save the result of .to_i. That is to say, if you just do: age.to_i then that's all the machine does - creates a new int out of 'a'. But it doesn't hold onto it if you don't tell it to. So you can either assign it back to itself, somewhere else, or just call .to_i when it's actually needed: age = age.to_i *or* age_val = age.to_i *or* puts 86000*365*age.to_i On Wed, 2010-10-06 at 20:00 -0500, Austin Delauney wrote: > for some reason line 6 doesnt work.i converted it into a integer but > still i get the error ". > How_old_are_you?.rb:6:in `*': String can't be coerced into Fixnum > (TypeError) > from How_old_are_you?.rb:6 > " > the * should work because i tried it. or if someone could tell me how to > do an input as a integer that would be great. but i would see of that > would have to work...