title: Calculation field using division in SQLite3
body: <p>I have a sqlite3 table with 2 fields of INT. (Passed and Failed)</p>
  
  <p>I want to calculate % Passed so am using the following SQL</p>
  
  <pre><code>SELECT id,
         passed,
         failed,
         passed / (passed + failed )* 100 AS 'passedPC'
    FROM myData
  </code></pre>
  
  <p>if Passed is 23 and Failed is 3 I am getting 0 returned which is unexpected.</p>
  
  <p>Why is this?</p>