Conditional Number Formatting In Java
<p>How can I format Floats in Java so that the float component is displayed only if it's not zero? For example:</p>

<pre>
123.45 -> 123.45
99.0   -> 99
23.2   -> 23.2
45.0   -> 45
</pre>

<p>Edit: I forgot to mention - I'm still on Java 1.4 - sorry!</p>
