Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Currency Formatter for Nepali Rupees
// Convert the currency format: 1,000,000 to Rs.10,00,00
// Initialization
NSNumberFormatter *currencyFormatter = [[NSNumberFormatter alloc] init];
[currencyFormatter setNumberStyle:NSNumberFormatterCurrencyStyle];
[currencyFormatter setCurrencySymbol:@"Rs."];
[currencyFormatter setLocale:[[NSLocale alloc] initWithLocaleIdentifier:@"en_IN"]];
NSString *str = [currencyFormatter stringFromNumber:[NSNumber numberWithFloat:price]];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment