If you're using Java 1.5, you can use the new printf method in PrintStream (e.g., System.out).
Note the "printf" method, which is taking a floating-point specifier (%f) as an argument along with the float value. Here, the specifier "%3.2f" indicates a number at least 3 characters wide with 2 decimal places.
For details on the specifier, see
Formatter.
[ September 27, 2005: Message edited by: marc weber ]