You can do:
long number = 1234567890123456789L;
long countSignificant = 16;
long leastSignificant = number % (long) Math.Pow(10, countSignificant);
How it works? Well, if you divide by 10, you drop the last digit, right? Does the last digit remain? The same applies to 100, and 1000 Math.Pow(1, n).
Let's look at the least significant figure, because we can do it in our head:
1234, 10, 123 4
# :
1234 / 10 == 123;
1234 % 10 == 4;
, - , n . , , 10 n. # (, ** python), :
Math.Pow(10, 4) == 1000.0;
:
(long) Math.Pow(10, 4) == 1000;
, , ;)