title: Why does this simple division between 2 floats not work with java?
body: <pre><code>System.out.println((26.55f/3f));
  </code></pre>
  
  <p>or</p>
  
  <pre><code>System.out.println((float)( (float)26.55 / (float)3.0 ));
  </code></pre>
  
  <p>etc.</p>
  
  <p>returns the result 8.849999.  not 8.85 as it should.</p>
  
  <p>Can anyone explain this or should we all avoid using floats?</p>