title: Converting numeric value with currency symbol back to Decimal with NumberFormat
body: <p>I would like to convert a possibly Decimal value prefixed with currency symbol into only numeric value.<br>
  For example -<br>
  The value can be like any of the following</p>
  
  <pre><code>String s1 = "£32,847,676.65";
  String s2 = "£3,456.00";
  String s3 = "£831,209";
  </code></pre>
  
  <p>I would like the result after conversion to be like - <code>32847676.65</code>, <code>3456.00</code> and <code>831209</code>.<br>
  I tried using the <code>parse()</code> method of the NumberFormat in this way -   </p>
  
  <pre><code>NumberFormat nf = NumberFormat.getCurrencyInstance(Locale.UK);
  numberFormat.setMinimumFractionDigits(2);
  Number num = nf.parse(s1);
  double dd = num.doubleValue();
  BigDecimal gg = new BigDecimal(dd);
  System.out.println(gg);
  </code></pre>
  
  <p>But the result is - <code>32847676.649999998509883880615234375</code> which is not quite exactly the correct one.</p>
  
  <p>I need it to be numeric so that may be I can perform some kind of calculation.<br>
  Can you guys guide me with what else can I try  </p>