title: Why does dividing two int not yield the right value when assigned to double?
body: <p>How come that in the following snippet</p>
  
  <pre><code>int a = 7;
  int b = 3;
  double c = 0;
  c = a / b;
  </code></pre>
  
  <p><code>c</code> ends up having the value 2, rather than 2.3333, as one would expect. If <code>a</code> and <code>b</code> are doubles, the answer does turn to 2.333. But surely because <code>c</code>  already is a double it should have worked with integers?</p>
  
  <p>So how come <code>int/int=double</code> doesn't work?</p>