3 decimal precision in Java : <pre><code>    Float x = 4;
    Float answer = 4/16;
</code></pre>

<p>The answer for this is <code>0.25</code>, but I want to display the answer upto <strong>3 decimal places</strong>, like <code>0.250</code>.</p>

<p>How to achieve that? Please help?</p>
