In C#, what\'s the best way to get the 1st digit in an int? The method I came up with is to turn the int into a string, find the 1st char of the string, then turn it back to
while (i > 10) { i = (Int32)Math.Floor((Decimal)i / 10); } // i is now the first int