title: Prevent round off in String.format("%.2f", doubleValue) in Java
body: <p>How do I prevent <code>String.format("%.2f", doubleValue);</code> from rounding off (round half up algorithm) instead of just truncating it?</p>
  
  <p>e.g.</p>
  
  <pre><code>doubleValue = 123.459
  </code></pre>
  
  <p>after formatting,</p>
  
  <pre><code>doubleValue = 123.46
  </code></pre>
  
  <p>I just want to discard the last digit,</p>
  
  <pre><code>123.45
  </code></pre>
  
  <p>I know there are other ways to do this, I just want to know if this is possible using the String.format.</p>