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

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Dallas Pool (Guest)
on 2006-01-29 05: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?
Dallas Pool (Guest)
on 2006-01-29 05:26
Never mind... number_to_currency... such a noob.
This topic is locked and can not be replied to.