I use the DecimalFormat but cannot make the integer in the right format
<pre><code>float number = 1;
DecimalFormat df = new DecimalFormat("#.##");
String str = ""+df.format(number);
fw.write(str);
</code></pre>

<p>I want to make the integer 1 be 1.00. But in the file str, it still writes 1 rather than 1.00. How to make it right?</p>