NSString stringWithFormat adding a percent [duplicate]
% being the character beginning printf-style formats, it simply needs to be doubled: float someFloat = 40.233f; NSString *str = [NSString stringWithFormat:@”%.02f%%”,someFloat];
% being the character beginning printf-style formats, it simply needs to be doubled: float someFloat = 40.233f; NSString *str = [NSString stringWithFormat:@”%.02f%%”,someFloat];