how to get String with two decimal places in iphone app
I have app in which i have method which inserts comma in NSString in thousands values i also want to include decimall like if i enter now 1000 then it shows 1,000 using this method but i want 1,000.00 like this here is my method any idea how to fix this issue. - (NSString *)formatStringF:(NSString *)string { // Strip out the commas that may already be here: NSString *newString = [string stringByReplacingOccurrencesOfString:@"," withString:@""]; if ([newString length] == 0) { return nil; } // Check for illegal characters NSCharacterSet *disallowedCharacters = [[NSCharacterSet