I would like to make a string with stringWithFormat from a double value, without the unnecessary zero at the end.
Examples:
[NSString stringWithFormat:@"%.8f",2.344383933];
[NSString stringWithFormat:@"%.8f",2.0];
expected results:
2.344383933
2
Which is the correct format ?
Thank you.