title: How to use DecimalFormat to format money?
body: <p>The input looks like <code>8.7000000</code> and I want to format it to look like <code>8.70 EUR</code>.
  I considered using the <code>DecimalFormat</code> class:</p>
  
  <pre><code>Double number = Double.valueOf(text);
  
  DecimalFormat dec = new DecimalFormat("#.## EUR");
  String credits = dec.format(number);
  
  TextView tt = (TextView) findViewById(R.id.creditsView);
  tt.setText(credits);
  </code></pre>
  
  <p>The result is <code>8.7 EUR</code>. How can I tell the formatter to have two digits after the <code>.</code>?</p>