title: Number counts up before using an if statement to pause?
body: <p>I want the number to stop when the variable <code>num</code> reaches a whole number. The pausing works correctly, but it goes up by 0.01 then pauses. The statement is ran every frame (via <code>requestAnimationFrame</code>).</p>
  <pre><code>if (Math.floor(num * 100) / 100 == Math.floor(num) &amp;&amp; pause &lt; 50) {
          pause += 1;
      } else {
          pause = 0;
          num += 0.01;
  }
  </code></pre>
  <p>The complete code block is on GitHub:<br />
  <a href="https://github.com/BootLegAidan/Geometrical-Thing/blob/master/Update.js" rel="nofollow noreferrer">https://github.com/BootLegAidan/Geometrical-Thing/blob/master/Update.js</a></p>