title: Javascript: PI (π) Calculator
body: <p>Is there a way to calculate pi in Javascript? I know there you can use <code>Math.PI</code> to find pie like this:</p>
  
  <pre><code>var pie = Math.PI;
  alert(pie); // output "3.141592653589793"
  </code></pre>
  
  <p>but this is not accurate. What I want is to be able to calculate it, to have as many digits as you want, not anything like <code>pie = 3.141592...</code>. But still, what I want is not have just have some more digits, but <strong>as much as you can</strong> (like having one thousand digits, but I need <strong>more</strong>).</p>