title: How to format a float number in java String.ValueOf
body: <p>I have this code:</p>
  
  <pre><code>StringBuilder sbp = new StringBuilder().append(
     String.valueOf((temp / 10F)))
     .append(" \260C / ").append(String.valueOf((temp/10F)*9/5+32))
     .append(" \260F");
  </code></pre>
  
  <p>and I get this result:</p>
  
  <pre><code> 29.8 C / 85.641 F
  </code></pre>
  
  <p>I want to format the float numbers to show max 1 digit after decimals, 85.6 instead of 85.641</p>