Use try? to handling the error in the function But it shows that "No calls to throwing functions occur within 'try' expression"
if let result:Double = try? finalformular.expression.expressionValue(with: nil, context: nil) as! Double{
text = String(result)
}else{
text = "Error"
}