get first digit on an long c# 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;