try {
DecimalFormat formatter = new DecimalFormat(PERCENTAGE_FORMAT);
Number parsedNumber = formatter.parse(target.trim());
value = new BigDecimal(parsedNumber.doubleValue());
} catch (NumberFormatException nfe) {
throw new FormattingException(errorMsg, nfe);
} catch (ParseException pe) {
throw new FormattingException(errorMsg, pe);
}
return value;
}