Ruby Price format... (Noob)

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?

Never mind… number_to_currency… such a noob.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs