Brazilian Currency Format


/ Published in: Objective C
Save to your folder(s)



Copy this code and paste it in your HTML
  1. NSNumberFormatter *nf = [[[NSNumberFormatter alloc] init] autorelease];
  2. [nf setCurrencyCode:@"BRL"];
  3. [nf setCurrencyDecimalSeparator:@","];
  4. [nf setCurrencyGroupingSeparator:@"."];
  5. [nf setCurrencySymbol:@"R$"];
  6. [nf setNumberStyle:NSNumberFormatterCurrencyStyle];

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.