title: Rounding Errors?
body: <p>In my course, I am told:</p>
  
  <blockquote>
    <p>Continuous values are represented approximately in memory, and therefore computing with floats involves rounding errors. These are tiny discrepancies in bit patterns; thus the test <code>e==f</code> is unsafe if <code>e</code> and <code>f</code> are floats.</p>
  </blockquote>
  
  <p>Referring to Java.</p>
  
  <p>Is this true? I've used comparison statements with <code>double</code>s and <code>float</code>s and have never had rounding issues. Never have I read in a textbook something similar. Surely the virtual machine accounts for this?</p>