title: Add 2 ints and compare to a float
body: <p>I have 2 numbers:  </p>
  
  <pre><code>int LIMIT1 = 20;    
  int LIMIT2 = 10;  
  
  
  int a, b;  
  float c;  
  </code></pre>
  
  <p>The threshold is defined as <code>final float threshold= Math.round(a * b / c)</code><br>
  The following code works:  </p>
  
  <pre><code>if(threshold &lt; (float) (LIMIT1 + LIMIT2)) {  
  //code  
  } 
  </code></pre>
  
  <p>Is this the best way to compare this?</p>