Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- self.cart = result.value(forKey: "cart") as! NSMutableArray
- self.totalsDic = result.value(forKey: "totals") as! NSMutableDictionary
- print(self.totalsDic)
- // print(self.cart)
- let total = self.totalsDic.object(forKey: "total") as! NSMutableDictionary
- let final = total.object(forKey: "total") as? String
- // final = final?.replacingOccurrences(of: "Rs.", with: "")
- let myDouble1 = NumberFormatter().number(from: final!)?.doubleValue
- print("My double: (String(describing: myDouble))")
- let myDouble2 = Double(final!)
Add Comment
Please, Sign In to add comment