title: nth digit of Pi
body: <p>I've been searching for hours trying to find an algorithm to get the nth digit of pi for JavaScript.</p>
  
  <p>I know I can use <code>2*Math.acos(0)</code> or <code>Math.PI</code> to get PI but I need to find the nth digit.</p>
  
  <p>How would one get the nth digit of PI without a hard-coded number already in it?</p>