C# get the first int of number 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 / Math.Pow(10, (int)Math.Floor(Math.Log10(Value))));