title: Comparing double variable with a integer value in C
body: <p>I just wanted to compare a double number saved in a double variable in C and then compare it with value 1.
  For example :</p>
  
  <pre><code>double x;
  x = 1;
  if(x == 1)
    call ....
  </code></pre>
  
  <p>but even when x has value one, this condition evaluated as false because x kept value 0.99999 instead of 1.</p>
  
  <p>how can I manage this problem!!</p>