File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes argh.. i hate memory lapses.  help with converting numbers to currency Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "argh.. i hate memory lapses.  help with converting numbers to currency" Watch "argh.. i hate memory lapses.  help with converting numbers to currency" New topic
Author

argh.. i hate memory lapses. help with converting numbers to currency

Zhuge Liang
Greenhorn

Joined: Nov 24, 2003
Posts: 3
mkay.. im tryin to convert a 'dollar amount' into a currency like output and i just cant remember for the life of me how to do it. help. kthx
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24057
    
  13

Use "new java.text.DecimalFormat("#.##")" .


[Jess in Action][AskingGoodQuestions]
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
And in case you don't have the memory of Ernest to remember so many details of the Java API, you might do well to remember the location of the J2SE API documentation.


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: argh.. i hate memory lapses. help with converting numbers to currency
 
Similar Threads
Currency Conversion
drop down
help i am very new at this... i need my result to format in 12345.00
How to format a number using country's currency
wanted a example for displaying currency in jsp