objective-c如何将double转成NSString

已经找到答案了,谢谢
2025-04-05 14:27:38
推荐回答(1个)
回答1:

double number = 1.23424;
NSString *ch ;
ch = [NSString stringWithFormat:@"%lf\n",number];
NSLog(@"Begin to printf: \n");
NSLog(@"%@\n", ch);