From: Zorigami Date: 2009-06-22T08:43:35+09:00 Subject: Product Class #2 --0016e64c1ad043a847046ce45347 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit I was wondering if anyone had any ideas on how I could make the following method "return "$#{@price}0" if "@price" only has one 0 after the ".", and just "return "$#{@price}" if it has two? Thanks. (The following method is inside a class called "Product"... Hence the subject) def price if @price.to_s.length == 4 return "$#{@price}" else @price.to_s.length return "$#{@price}0" end end --0016e64c1ad043a847046ce45347--