I'd like to format and display BigDecimal
numbers with always to fractions. No other separators should ever be displayed. How could I achieve it? The following does not work.
NumberFormat formatter = NumberFormat.getNumberInstance(Locale.GERMANY);
formatter.setMaximumFractionDigits(2);
formatter.setMinimumIntegerDigits(2);
Sysout(formatter.format(new BigDecimal(100))); //would expect "100,00", but printout is "100"