If I have a number int aNum = 2000000 how do I format this so that I can display it as the NSString 2,000,000?
int aNum = 2000000
Even easier:
NSNumber *someNumber = @(1234567890); NSString *modelNumberString = [NSString localizedStringWithFormat:@"%@", someNumber]; NSLog(@"Number with commas: %@", modelNumberString);
coworker just taught me this today. #amazing