title: C# to Lambda - count decimal places / first significant decimal
body: <p>Out of curiosity, would there be an equivalent Lambda expression for the following?</p>
  
  <p>... just started using lambda so not familiar yet with methods like zip ...</p>
  
  <pre><code>//Pass in a double and return the number of decimal places
  //ie. 0.00009 should result in 5
  
  //EDIT: Number of decimal places is good.
  //However, what I really want is the position of the first non-zero digit 
  //after the decimal place.
  
  int count=0;
  while ((int)double_in % 10 ==0)
  {
  double_in*=10;
  count++;
  }
  </code></pre>