title: How to convert Double to Int in Swift?
body: <p>I'm trying to figure out how I can get my program to lose the <code>.0</code> after an integer when I don't need the any decimal places.</p>
  <pre><code>@IBOutlet weak var numberOfPeopleTextField: UITextField!
  @IBOutlet weak var amountOfTurkeyLabel: UILabel!
  @IBOutlet weak var cookTimeLabel: UILabel!
  @IBOutlet weak var thawTimeLabel: UILabel!
  
  var turkeyPerPerson = 1.5
  var hours: Int = 0
  var minutes = 0.0
  
  func multiply (#a: Double, b: Double) -&gt; Double {
      return a * b
  }
  
  func divide (a: Double , b: Double) -&gt; Double {
      return a / b
  }
  
  @IBAction func calculateButton(sender: AnyObject) {
      var numberOfPeople = numberOfPeopleTextField.text.toInt()
      var amountOfTurkey = multiply(a: 1.5, b: Double(numberOfPeople!))
      var x: Double = amountOfTurkey
      var b: String = String(format:&quot;%.1f&quot;, x)
      amountOfTurkeyLabel.text = &quot;Amount of Turkey: &quot; + b + &quot;lbs&quot;
      
      var time = multiply(a: 15, b:  amountOfTurkey)
      var x2: Double = time
      var b2: String = String(format:&quot;%.1f&quot;, x2)
      if (time &gt;= 60) {
          time = time - 60
          hours = hours + 1
          minutes = time
          var hours2: String = String(hours)
          var minutes2: String = String(format: &quot;%.1f&quot;, minutes)
          
          cookTimeLabel.text = &quot;Cook Time: &quot; + hours2 + &quot; hours and &quot; + minutes2 + &quot; minutes&quot;
      } else {
          cookTimeLabel.text = &quot;Cook Time: &quot; + b2 + &quot;minutes&quot;
      }
     
  }
  </code></pre>
  <p>Do I need to make an if statement to somehow turn Double into Int for this to work?</p>