title: C++ will exact division lose precision?
body: <p>Q1:Will dividing a integer by its divisor lose precision ?</p>
  
  <pre><code>int a=M*N,b=N;//M and N are random non-zero integers.
  float c=float(a)/b;
  if (c==M)
  cout&lt;&lt;"accurate"&lt;&lt;endl;
  </code></pre>
  
  <p>Q2:Will passing a float value lose precision ?</p>
  
  <pre><code>float a=K;//K is a random float;
  if (a==K)
  cout&lt;&lt;"accurate"&lt;&lt;endl;
  </code></pre>