title: Java String.format() leading zeros and 1 decimal place
body: <p>I need a string like <code>50</code> to appear as <code>050.0</code>. I am using String.format, but I can't figure out how to do leading zeros <em>and</em> a single decimal place at the same time. So far, I have tried <code>String.format("%3.2f", number);</code>, but that isn't working as I still get <code>50.0</code> rather than <code>050.0</code></p>