title: Simple math operations in Swift not working as they should
body: <p>Alright, let's imagine I have an NSDate object <code>date</code>, that is in the past, and I want to calculate the number of seconds that have passed. This is how I do it:</p>
  
  <pre><code>let timeInterval = -date.timeIntervalSinceNow
  </code></pre>
  
  <p>Then I want to decompose that into minutes, seconds and centi-seconds:</p>
  
  <pre><code>let seconds = Int(timeInterval) % 60
  let minutes = Int(timeInterval - seconds) / 60
  let centiSeconds = Int((timeInterval - Int(timeInterval)) * 100)
  </code></pre>
  
  <p>Except that the compiler complains about the last two lines, and I cannot figure out why.</p>
  
  <p>For the <code>minutes</code> line it says <code>Could not find and overload for '/' that accepts the supplied arguments</code>, and for the <code>centiSeconds</code> line it says <code>Could not find and overload for 'init' that accepts the supplied arguments</code>. What am I doing wrong? Isn't this acceptable in Swift-land?</p>