Get digits in an integer
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2506476/finding-the-string-length-of-a-integer-in-net">Finding the string length of a integer in .NET</a>  </p>
</blockquote>



<p>Is there any way to get the number of digits in an integer? For example:</p>

<pre><code>int a = 12345;
</code></pre>

<p>I want to determine that <code>a</code> has 5 digits</p>
