I would like to show my position on the map, I'm using CLLocation
for doing it
Here is my code:
CLLocationCoordinate2D coordinate;
coordinate.latitude = latitude;
coordinate.longitude = longitude;
With latitude
and longitude
is float type and get from database
But when i convert to float value so i get wrong value:
float latitude = [myLatString floatValue];
and result:
myLatString : 10.861714
float value : 10.8617144
So i can't load to my mapview with above values.
I searched on google, someone said use NSDecimalNumber
but how to work NSDecimalNumber
with CLLocation
??
Please help me