title: How to do arithmetic between int and float in Swift?
body: <p>This is my first day in Swift programming and till now we are using Objective C. I tried to write simple addition program it works. Like,</p>
  
  <pre><code>var i = 10
  var j = 10
  var k = i + j
  println(k)
  </code></pre>
  
  <p>But when I change one of the values to float it gives error.  </p>
  
  <pre><code>var i = 10
  var j = 10.4
  var k = i + j
  println(k)
  </code></pre>
  
  <blockquote>
    <p>Error: main.swift:13:11: Could not find an overload for '+' that
    accepts the supplied arguments</p>
  </blockquote>
  
  <p>Now I did Google search and tried few thing e.g. <code>Double(i+j)</code> , but it doesn't work. Swift should implicitly convert int to float in this case, isn't it? </p>
  
  <p>Please suggest if I am doing any mistake understanding Swift language. </p>