How to print a double with full precision on iOS?

后端 未结 5 1768
我寻月下人不归
我寻月下人不归 2020-12-17 08:16

Test case:

NSLog(@\"%f\", M_PI);
NSLog(@\"%@\", [NSString stringWithFormat:@\"%f\", M_PI]);
NSLog(@\"%@\", [NSNumber numberWithDouble:M_PI]);
5条回答
提交回复
热议问题