title: Specify output type of arithmetic expressions
body: <p>Suppose:</p>
  
  <pre><code>byte b1 = 10; 
  byte b2 = 20;
  short p = 200;
  int n = 500; 
  long q = 100;
  float x = 2.5f;
  double y = 5.25;
  </code></pre>
  
  <p>What is the output type of the arithmetic expression below please:</p>
  
  <pre><code>b1*q*2./x
  </code></pre>
  
  <p>I've tried this so far:</p>
  
  <pre><code>byte * long * double / float
  byte * long * ( double / float ) 
  byte * long * ( double / double ) 
  byte * long * double
  byte * ( long * double ) //I've just added parentheses
  byte * ( double * double ) 
  byte * double 
  cast(double)byte * double = double 
  </code></pre>
  
  <p>So the result type is double.</p>
  
  <p>Is that correct ?</p>