title: modulus bug in R
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/9508518/why-are-these-numbers-not-equal">Why are these numbers not equal?</a>  </p>
  </blockquote>
  
  
  
  <p>Just noticed this bug in R. I'm guessing it's the way 0.6 is represented, but anyone know exactly what's going on?</p>
  
  <p>According to R:</p>
  
  <pre><code>0.3 %% 0.2 = 0.1
  0.4 %% 0.2 = 0
  0.5 %% 0.2 = 0.1
  **0.6 %% 0.2 = 0.2**
  0.7 %% 0.2 = 0.1
  0.8 %% 0.2 = 0
  </code></pre>
  
  <p>What's going on?</p>