title: Is there a replacement for this double math
body: <p>Is there a Java operator that would create a value equal to count but in fewer lines?</p>
  
  <pre><code>    double theta = //Some value;
      int count = 0;
      while (theta &gt; 0) {
          theta -= pi * (1.0 / 8.0);
          count += 1;
      }
  </code></pre>