conversion to currency format

J

Jinho Lee

Hi,
Is there any handy (or standard) method to convert a Ruby string
"350000" or number 350000 to a US currency format such as: $350,000.00
or just $350,000 (without cents)? Thanks in advance.
 
P

Phillip Gawlowski

Phillip said:
Look at Currency::parser, this seems like what you want.

d'oh, Currency::Formatter is probably what you want, and not
Currency::parser.

--
Phillip "CynicalRyan" Gawlowski
http://cynicalryan.110mb.com/

Rule of Open-Source Programming #4:

If you don't work on your project, chances are that no one will.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top