c int get only first 4 numbers code example
Example 1: on in get first two digit start with two numbers c#
while (number >= 10)
number /= 10;
Example 2: on in get first two digit start with two numbers c#
int firstDigit = (int)(Value.ToString()[0]) - 48;