title: Fastest way to get number of digits on a number?
body: <p>I have do detect the amount of digits on a number. For example, <code>329586</code> has <code>6</code> digits.</p>
  
  <p>What I done, is simply parsing the number to string, and getting the string length, like:</p>
  
  <pre><code>number.toString().length()
  </code></pre>
  
  <p>But, is there a fastest way to count digits on a number? I have to use this method several times, so I think using <code>toString()</code> can impact performance.</p>
  
  <p>Thanks.</p>