title: Is extra time required for float vs int comparisons?
body: <p>If you have a floating point number <code>double num_float = 5.0;</code> and the following two conditionals.</p>
  
  <pre><code>if(num_float &gt; 3)
  {
      //...
  }
  
  if(num_float &gt; 3.0)
  {
      //...
  }
  </code></pre>
  
  <p><strong>Q:</strong> Would it be slower to perform the former comparison because of the conversion of <code>3</code> to a floating point, or would there really be no difference at all?  </p>
  
  <p>Obviously I'm assuming the time delay would be negligible at best, but compounded in a while(1) loop I suppose over the long run a decent chunk of time could be lost (if it really is slower).</p>