i wrote a code to convert string to double but gives error :
Cannot convert the expression's type 'Double' to type 'NSString'
and my code is :
var first = previewLable.text
var second = label1.text
var number1: Double = (first as NSString).doubleValue
var number2: Double = (second as NSString).doubleValue
what i have to do to fix this error ???
Thanks