Which dataType will return the value (37.961498) as it is ? Double didn't work

前端 未结 3 1132
无人共我
无人共我 2021-01-17 06:32

Which dataType will return the value (37.961498) as it is?

I am working in MapView. Where, at present I am setting annotation and hence I have to set CLLocationCoor

3条回答
  •  一整个雨季
    2021-01-17 06:55

    double int1=[num1s floatValue];
    double int2=[num2s floatValue];
    NSLog(@" %0.7f %0.7f ",int1,int2);
    annotation.coordinate=CLLocationCoordinate2DMake(int1, int2);
    

    Read String Format Specifiers for more info.

提交回复
热议问题