I have converted a double to a string as I think it would be easier to manipulate. I have a string of: 14.52637472 for example.
How can I split it up into 2 variables, one for before the period, and one for ONLY 2 DECIMALS after?
so it should be: one = 14 and two = 52
This is my code to convert into a string: var str: String = all.bridgeToObjectiveC().stringValue
I don't know objective C, so I wouldn't really be able to do it that way, and I have read over the swift book on strings, but it does not discuss how to do this, or atleast I could not find that part?
Please would you help me out, want to build the app for my father to surprise him.