Test case:
NSLog(@\"%f\", M_PI); NSLog(@\"%@\", [NSString stringWithFormat:@\"%f\", M_PI]); NSLog(@\"%@\", [NSNumber numberWithDouble:M_PI]);
Try this, this work for me
NSLog(@"%@",[NSString stringWithFormat:@"%f",distance]);