I am facing an issue where I need to do some calculations with a number like for example 5000,00 multiplied it by (1,025^3).
So in
This is the format you need:
val dec = DecimalFormat("#,###.##")
will print:
5.384,45
if you need always exactly 2 digits after the decimal point:
val dec = DecimalFormat("#,###.00")