From: Adam Bourg on
Thanks Stefano. It has been a major help.

Also, thank you to others who've responded.

Stefano Crocco wrote:
> age_numeric = begin Integer(age)
> rescue ArgumentError
> puts "Enter a valid number"
> exit
> end
> #months is already an integer, so there's no need to call to_i on it
> monthsold = age_numeric * months
>
> I hope this helps
>
> Stefano

--
Posted via http://www.ruby-forum.com/.