title: Division returns unexpected 0 if result is declared as double
body: <p>From the following code</p>
  
  <pre><code>x = 2 / 5
  double y = 2 / 5
  double z = 2.0 / 5
  println(String.format("%f %f %f", x, y, z))
  </code></pre>
  
  <p>we get the output</p>
  
  <pre><code>0.4 0.0 0.4
  </code></pre>
  
  <p>Why is the value of <code>y</code> 0.0?  What is the reason for this unintuitive behaviour?</p>