reduce number in magnitude to 5 digits

137 Views Asked by At

I am looking to reduce any 10 digit number to a 5 digit number using a scale factor without any decimal numbers.

I would like it to be a whole number in keeping with a constant magnitude or constant scale factor of the original 10 digit number.

i.e 9999999999 to 99999 i.e XXXXXXXXXX to XXXXX then can in theory XXXXX to XXXXXXXXXX

I am not sure if there is a formula available to do this. Any options to accomplish this would be much appreciated.

Thanks