DecimalFormat fmt = new DecimalFormat("##0,00", new DecimalFormatSymbols(locale));
// DecimalFormat.parse can return long values, so it's more securely call floatValue
return fmt.parse(value).doubleValue();
} catch (ParseException e) {
throw new ConversionError(MessageFormat.format(bundle.getString("is_not_a_valid_number"), value));
}
}