Test case:
NSLog(@\"%f\", M_PI); NSLog(@\"%@\", [NSString stringWithFormat:@\"%f\", M_PI]); NSLog(@\"%@\", [NSNumber numberWithDouble:M_PI]);
Try this:
NSLog(@"%.20f", M_PI);