fisrt digit of number c# code example
Example 1: on in get first two digit start with two numbers c#
int firstDigit = (int)(Value / Math.Pow(10, (int)Math.Floor(Math.Log10(Value))));
Example 2: on in get first two digit start with two numbers c#
int firstDigit = (int)(Value.ToString()[0]) - 48;