title: processing float in java
body: <p>in java, i have an array of floats, some of them are negative numbers, like :</p>
  
  <pre><code>3.04, 9.02, -4.2, -3.21, 0.02, -0.34
  </code></pre>
  
  <p>I only want to get the float numbers higher than 2, so I used :</p>
  
  <pre><code>if(number &gt; 2.0 ) print.. etc
  </code></pre>
  
  <p>but what i get is not only the numbers >2, also the negative numbers :</p>
  
  <pre><code>3.04, 9.02, -4.2, -3.21
  </code></pre>
  
  <p>what could be the problem ?</p>