I want to round the number 1732 to the nearest ten, hundred and thousand. I tried with Math round functions, but it was written only for float and double. How to do this for
int val2 = 1732; val2 = (int)(Math.rint((double) i / 10) * 10);
The output is:1730