title: Accept decimals
body: <p>I´m trying to make an app that lets you input height and ratio and it will calculate the area and so on. But when i type in let´s ay 4,2 or 4.2 it crashes or says bad execution. I have tried different ways in declaring in but I´m probably doing it wrong. I tried Float and Double with no luck. I will be really grateful for any help.</p>
  
  <pre><code>let atext: Int? = Int(radien.text!)
  let btext: Int? = Int(höjden.text!)
  let ctext: Int? = Int(sidan.text!)
  
  let myInt = (atext! * atext!)
  let tre = 3
  
  let myInt2 = Double(myInt) * Double(M_PI) * Double(btext!)
  
  let result = Float(myInt2) / Float(tre)
  volymenSvar.text = "\(result)"
  </code></pre>