title: Java float not acting correctly
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2475652/why-does-360-24-60-0-in-java">Why does (360 / 24) / 60 = 0 … in Java</a>  </p>
  </blockquote>
  
  
  
  <p>I am having this problem:</p>
  
  <pre><code>float rate= (115/100);
  </code></pre>
  
  <p>When I do:</p>
  
  <pre><code>System.out.println(rate);
  </code></pre>
  
  <p>It gives me 1.0
  What... is the problem?</p>