Given a locale java.text.NumberFormat:
NumberFormat numberFormat = NumberFormat.getInstance();
How can I get the character used as Decimal separator (if it's a comma or a point) in that numberformat? How can I modify this property without having to use new DecimalFormat(format)?
Thanks
Best Answer
The helper class DecimalFomatSymbols is what you are looking for:
To set you symbols as needed:
EDIT: this answer is only valid for
DecimalFormat
, and not forNumberFormat
as required in the question. Anyway, as it may help the author, I'll let it here.