title: Why does 1 / 2 == 0 using double?
body: <p>I'm a high school student currently getting ready for a state academic meet(UIL). I have a problem and I've looked everywhere and can't seem to find an answer! Why does this print out 0.0?</p>
  
  <pre><code>double d = 1/2;
  System.out.println(d);
  </code></pre>