Forum: Ruby on Rails Ruby Price format... (Noob)

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
73726f7eec8038e3c6f5a7722e231f8b?d=identicon&s=25 Dallas Pool (Guest)
on 2006-01-29 04:21
I've never had much luck with sprintf...

I can format a price descently enough with sprintf("$%0.2f",price) but
for large values this only gives me $2500.00

I need the comma precision of $2,500.00... so how can I get that?
73726f7eec8038e3c6f5a7722e231f8b?d=identicon&s=25 Dallas Pool (Guest)
on 2006-01-29 04:26
Never mind... number_to_currency... such a noob.
This topic is locked and can not be replied to.