title: How do I round 12.443 to 12.40
body: <p>I'm making a calculation and I'm getting 12,443. I want to round it to 12,40. This is the way I'm trying to do it but I'm getting 12 instead of 12,40</p>
  
  <pre class="lang-java prettyprint-override"><code>float result = Math.round( (new Float(result1)*0.3) + (new Float(result2)*0.7) );
  vprosvasis.setText( Float.toString(result) );
  </code></pre>
  
  <p>Examples:</p>
  
  <ul>
  <li>if I get 12,70001 I want to round to 12,7</li>
  <li>if i get 13,4402 to round it to 13,4</li>
  <li>11,19 to 11,2</li>
  </ul>
  
  <p>So, the final number will always be in ##.@ format</p>