From: Hassan Schroeder Date: 2010-08-10T22:58:03+09:00 Subject: Re: Hel;p with Tip Calculator On Tue, Aug 10, 2010 at 6:51 AM, Hd Pwnz0r wrote: >>   input_string.gsub(/\D/, '') > tax.rb:6:in `
': undefined method `gsub' for 0:Fixnum > (NoMethodError) > > When using that code. Yes, it works on *strings* -- that was the problem you posed. If you already have a *number*, it's not going to include any symbols like "$" or "%" in the first place. -- Hassan Schroeder ------------------------ hassan.schroeder@gmail.com twitter: @hassan