title: Determine place values for any base
body: <p>I'm looking for a function that will determine the value of a place given a number and a base.  For example,</p>
  
  <p><strong>Given:</strong></p>
  
  <blockquote>
  <pre><code>Whole Value: 1120
  Base: 10
  Place: Tens place
  </code></pre>
  </blockquote>
  
  <p><strong>Should return:</strong> 2</p>
  
  <p>Does anybody know the math for this?</p>
  
  <p>Edit: The function is also expected to pass the whole value numerically, not as a string like "e328fa" or something.  Also the return value should be numeric as well, so a FindInPlace(60 (whole value), 16 (base), 2 (place, 1-based index)) should return 3.</p>