Swift: Converting String to Double

Image of

Converting a string to double is easy in Swift. (swiftString as NSString).doubleValue does the trick. The following example just works fine But if you are using a *’thousand separator’ in your string, things are getting messy … Or if you are using a comma instead of »