I use Decimalformat two get two decimals with this line of code
DecimalFormat df = new DecimalFormat("#0.00");
My outputs is for example like this
568,99
1090,33
12897,45
233567,77
How can I set the decimalformat to output like this?
568,99
1.090,33
12.897,45
233.567,77
Is there a way with the methods from Decimalformat to do this. With codes like these
df.setMinimumFractionDigits(3);
df.setMaximumFractionDigits(3);
df.setMinimumIntegerDigits(1);
I never extended my knowledge about DecimalFormat, that's why I'm asking.
Is this possible to do with the decimalformat code? How?
Is there a better way?