The question I have is how do I get my "calculated" and "calculatedTotal" variables to display their results to only two decimal places?
@IBOutlet weak var calculateLabel: UILabel!
@IBOutlet weak var calculateTotalLabel: UILabel!
@IBAction func calculateButton(sender: UIButton) {
var calculated = correctNumber / (correctNumber + incorrectNumber) * 100
calculateLabel.text = ("\(calculated)% without cues.")
var calculatedTotal = correctNumber / (correctNumber + incorrectNumber + verbalNumber + visualNumber + tactileNumber) * 100
calculateTotalLabel.text = "\(calculatedTotal)% without cues."
}