int number = 6321;
int rounded = (number / 100) * 100;
double abc_1 = 2495;
double abc_1_m = abc_1 - abc_1 % 100;
double abc_2 = 6321;
double abc_2_m = abc_2 - abc_2 % 100;
double abc_3 = 123456;
double abc_3_m = abc_3 - abc_3 % 100;
double abc_3 = 123456;
double abc_3_m = abc_3 - abc_3 % 1000;
If you are experiencing a similar issue, please ask a related question
Join the community of 500,000 technology professionals and ask your questions.