How can you get the first digit in an int (C#)?
<p>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 an int.</p>

<pre><code>int start = Convert.ToInt32(curr.ToString().Substring(0, 1));
</code></pre>

<p>While this does the job, it feels like there is probably a good, simple, math-based solution to such a problem. String manipulation feels clunky.</p>

<p><strong>Edit:</strong> irrespective of speed differences, mystring[0] instead of Substring() is still just string manipulation</p>
