How can I format Floats in Java so that the displayed component is only displayed if it is not equal to zero? For example:
123.45 -> 123.45
99.0 -> 99
23.2 -> 23.2
45.0 -> 45
Edit: I forgot to mention - I'm still in Java 1.4 - sorry!
Joel
source
share