title: Calculate simple math equation
body: <p>I try to use swift code to calculate 10 * 75% = 7.5</p>
  
  <pre><code>var b : Int = 10
  var a : Int = 75
  // result x is 0
  var x = b * (a / 100) 
  </code></pre>
  
  <p>However the result is zero. How to get 7.5 result without changing the type and value of <code>a</code> and <code>b</code>?</p>
  
  <p>UPDATE:</p>
  
  <p>I got it right by:</p>
  
  <pre><code> var x: Double = (Double(b) * (Double(a) / 100)) // x is 7.5
  </code></pre>
  
  <p>Now, how can I round it to 8 as a <code>Int</code> type?</p>