In my Android app I've got an EditText from which I take a number, and convert that to a BigDecimal, and from there to a local Currency formatting:
String s = "100000";
Locale dutch = new Locale("nl", "NL");
NumberFormat numberFormatDutch = NumberFormat.getCurrencyInstance(dutch);
Log.e(this, "Currency Format: "+ numberFormatDutch.format(new BigDecimal(s.toString())));
This prints out €100.000,00 like expected. I now however, want to convert this back into a BigDecimal.
Is there a way that I can convert a locally formatted currency string back to a BigDecimal?