I have an array in obj-c with this data and latitude
and longitude
is a NSNumber
[<RequestAddress>
[latitude]: 38.63180843974196
[longitude]: 33.12896232001408
[addressText]: address Name
[isStartedPoint]: 1
</RequestAddress>]
and I am trying to print the two values and I'm getting it like this
if let value = parentNewCarRequestVC.request.address{
print(value) // value = (
"<RequestAddress> \n [latitude]: 39.6954240771316\n [longitude]: 33.10735601860666\n [addressText]: address Name\n [isStartedPoint]: 1\n</RequestAddress>"
)
let number = Double(value[0].latitude)
print("Result:\(number)") //Result: 6.94109152851164e-310
}
while it should be 38.6318
So please where would be my issue?