title: Can I compare and add a floating-point number to an integer in C?
body: <p>Can I compare a floating-point number to an integer?</p>
  
  <p>Will the float compare to integers in code?</p>
  
  <pre><code>float f;     // f has a saved predetermined floating-point value to it  
  if (f &gt;=100){__asm__reset...etc}
  </code></pre>
  
  <p>Also, could I...  </p>
  
  <pre><code>float f;
  int x = 100;
  x+=f;
  </code></pre>
  
  <p>I have to use the floating point value <strong>f</strong> received from an attitude reference system to adjust a position value <strong>x</strong> that controls a PWM signal to correct for attitude.</p>