Swift

问题来自StackOverflow

(swiftString as NSString).doubleValue
原文地址:https://www.cnblogs.com/zhudongfang/p/swift-how-to-convert-string-to-double.html