//将string类型数据转换成double或float型并进行运算
var result:Double = 0.0
var operation1:String = "10"
var operation2:String = "3"
result = (operation1 as NSString).doubleValue / (operation2 as NSString).doubleValue
//将string类型数据转换成double或float型并进行运算
var result:Double = 0.0
var operation1:String = "10"
var operation2:String = "3"
result = (operation1 as NSString).doubleValue / (operation2 as NSString).doubleValue