I have the following code:

class Float
  def to_dollars_with_cents
    format("$%.2f", self)
  end
end

This way in rails I can go:

@summary.job_cost.to_dollars_with_cents

The output comes out as: $1900000.00

I would prefer to format it as: $1,900,000.00

How would you suggest I do that?

Your Friend,

John

-- 
John Kopanas
john / kopanas.com

http://www.kopanas.com
http://www.cusec.net
http://www.soen.info