title: Format float value with 2 decimal places
body: <p>How can I round the result to 2 decimal places and show it on the result label? I found some statements, but I´m new to Swift and it is actually difficult for me to rebuild the samples for my project.</p>
  <pre><code>import UIKit
  
  class ViewController: UIViewController {
      
      @IBOutlet var txt: UITextField!
      
      @IBOutlet var l5: UILabel!
      @IBOutlet var l10: UILabel!
      @IBOutlet var l15: UILabel!
      @IBOutlet var l20: UILabel!
      @IBOutlet var l25: UILabel!
      @IBOutlet var l30: UILabel!
      @IBOutlet var l35: UILabel!
      @IBOutlet var l40: UILabel!
      
      @IBAction func Berechnen(sender: AnyObject) {
          
          var Zahl = (txt.text as NSString).floatValue
          
          l5.text  = &quot;\((Zahl / 95) * (100))&quot;
          l10.text = &quot;\((Zahl / 90) * (100))&quot;
          l15.text = &quot;\((Zahl / 85) * (100))&quot;
          l20.text = &quot;\((Zahl / 80) * (100))&quot;
          l25.text = &quot;\((Zahl / 75) * (100))&quot;
          l30.text = &quot;\((Zahl / 70) * (100))&quot;
          l35.text = &quot;\((Zahl / 65) * (100))&quot;
          l40.text = &quot;\((Zahl / 60) * (100))&quot;
      }
      
      func textFieldShouldReturn(textField: UITextField) -&gt; Bool {
          self.view.endEditing(true)
          return false
      }
  
  }
  </code></pre>