I have a 5 digit number and I want to put a dot/comma in the last step of this number.
1234 to 123,4
2564 to 256.4
I tried this but it wasn't
int val=1234;
NumberFormat number = NumberFormat.getInstance();
number.setMaximumFractionDigits(3);
String output = number.format(val);
Can you help me, please? Thanks in advance.