On 2007-07-27, Erik Boling <schmode93 / yahoo.com> wrote:
> <snip>
> NoMethodError: undefined method `-' for "14.50":String
> </snip>
>
> 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 <stephen / touset.org>