title: How to convert number value representing eg percents, currency to string and back to BigDecimal by using DecimalFormat
body: <p>Hi I'd like know how to format BigDecimal representing numbers,percents,moneys,integers to String in Locales and from String back to BigDecimal. I'm using DecimalFormat which is powerful, but I'm not sure how to use conversion to exact type in default user locales. I first time use this:</p>
  
  <pre><code>DecimalFormat.getCurrencyInstance().format( obj );
  DecimalFormat.getCurrencyInstance().parse( source );
  </code></pre>
  
  <p>But with large numbers its misrepresents their value. So i find something and get this:</p>
  
  <pre><code>DecimalFormat decimalFormat = new DecimalFormat();
  decimalFormat.setParseBigDecimal( true );
  BigDecimal bd = ( BigDecimal ) decimalFormat.parse( value );
  </code></pre>
  
  <p>But how to combine these thinks. I probably need set to DecimalFormat some pattern which is used in NumberFormat.get???instance(), but I don't know how and if isn't get some strange behavior.</p>
  
  <p>So Please someone who has experience with this can you help me? Thanks Pavel</p>