From: Stephen Touset Date: 2007-07-27T14:10:13+09:00 Subject: Re: Adding arrays On 2007-07-27, Erik Boling wrote: > > NoMethodError: undefined method `-' for "14.50":String > > > could it because im using floats, and not intergers? You're not using either. You're taking straight from standard input, so you're reading in Strings, like the error message says. To convert these values to floats, use String#to_f. -- Stephen Touset