| 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
|
|
|
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]
|
 |
 |
|
|
subject: argh.. i hate memory lapses. help with converting numbers to currency
|
|
|