From: salai Date: 2009-06-18T01:13:56+09:00 Subject: private method - Fixnum (NoMethodError) Dear All, I can't find the error in my code. Can you explain me "private method - Fixnum (NoMethodError)"? Many thanks in advance, koko def subtotal(qty = 1) return nil if self.to_f <= 0 || qty.to_f <= 0 self.to_f * qty.to_f end apple = 11 puts apple.subtotal(2)