title: Sum Float number c++
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/7581741/floating-point-error-in-representation">Floating point error in representation?</a>  </p>
  </blockquote>
  
  
  
  <p>I have problem with this code </p>
  
  <pre><code>int cent;
  int dollar ;
  float cnt2dlr;
   //convert cnt to doloar ;
  cnt2dlr=(cnt)/(100);
  </code></pre>
  
  <p>The problem is when <code>cnt = 175</code>, <code>cnt2dlr = 0.17,444444</code> and not <code>0.17,5</code></p>
  
  <p>Any help?</p>