title: comparing double values in C
body: <p>i have two double arrays, let's say A and B. i want to compare their results to 7 significant digits. will the following be correct to make the comparison?</p>
  
  <pre><code>k = pow(10,7);
  for(...)
  {
   if(((int)A[i]*k)!=((int)B[i]*k))
   {
    ...
   }
  }
  </code></pre>