Is it possible to shift right the digits of an integer? I mean shifting the actual digits of the integer values and not the bits of its binary representation - for example shifting right the number 435 twice would result in 4. I want to know if there is a way to replace the rudimentary method of dividing the number by 10 the number of times that's equal to the number of digits you want to remove.
Thanks