title: For loop won't add terms for some reason
body: <p>So, I was putting my knowledge of for loops to the test by attempting to create the mathematical constant π using a series with user-defined accuracy:</p>
  
  <pre><code>public double pi(int accuracy) {
      for (int i = 1; i &lt;= accuracy; i++) {
          rawPi += 1 / (i * i);
      }
      return Math.sqrt(rawPi * 6);
  }
  </code></pre>
  
  <p>Now, you would think that this would get closer and closer to π as <code>int accuracy</code> shoots up, but it doesn't. It just stays at the square root of 6, meaning that <code>private double rawPi</code> gets to 1 and never goes any higher, meaning no terms are being added in my series (represented as a for loop) and I have absolutely no idea what the problem could be. Any ideas?</p>