ios double from string without rounded
double, ios, iphone, rounding
Solution
try with this line..
NSString *latitude= @"41.04546";
double lat= [latitude doubleValue];
NSLog(@"\n\n Value Lat ==>> %f",lat);
Problem
Below code is rounding my latitude string. i dont want it to get rounded. double lat must be 41.04546. ``` NSString *latitude= @"41.04546"; double lat= latitude.doubleValue; //it gives 41.0455 CLLocationCoordinate2D coordinat; coordinat.latitude= lat; ``` For precise coordinate that must not be rounded.