I need to format a decimal value to a string where i always display at lease 2 decimals and at most 4.
so for example
"34.49596" would be "34.4959"
"49.3" would be "49.30"
can this be done using the String.format command? Or is there an easier/better way to do this in java.