title: Java - NumberValue to String without Currency sign
body: <p>I am trying to format a NumberValue as a String in the current locale format.</p>
  
  <p>For example, for Locale.Germany these would be the results I am trying to get:</p>
  
  <pre><code>1   -&gt; 1,00
  1.1 -&gt; 1,10
  0.1 -&gt; 0,10
  </code></pre>
  
  <p>What I have tried:</p>
  
  <pre><code>String test1 = NumberFormat.getInstance().format(1.1);
  // -&gt; 1,1
  String test2 = NumberFormat.getCurrencyInstance().format(1.1);
  // -&gt; 1,10 €
  </code></pre>
  
  <p>How could I get the same format as the second example, without the currency symbol? Or alternativly, how could I make sure the result from the first example always has the amount of decimals needed for the current locale?</p>
  
  <p>Edit: Since there are some currencies that have 0,2 or 3 decimals, I don't think setting the decimals to a fixed amount will have the correct results.</p>
  
  <p>Also, some currencies have their symbol in the front, and some in the back, so cutting off the last characters will probably not work either.</p>
  
  <p><a href="http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf" rel="nofollow noreferrer">http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf</a> </p>