posted 17 years ago
Are you using J2SE5.0? If there is a 5 in your version (or a 6), you want to use the formatting options. Look up the java.util.Formatter class in the API for details.
If you are using older versions you would have to use NumberFormat and DecimalFormat classes, which are much more awkward to use.
CR