Take a look at the java.text.DecimalFormat class. You can specify a format, which might include commas or decimal points or parenthesis (for negative number), and number of digits after the decimal point.
Joined: Feb 18, 2003
Thank you very much for the reply. I would take a look at it.