title: Check double variable if it contains an integer, and not floating point
body: <p>What I mean is the following:</p>
  
  <pre><code>  double d1 =555;
    double d2=55.343
  </code></pre>
  
  <p>I want to be able to tell that d1 is an integer while d2 is not. Is there an easy way to do it in c/c++?</p>