Posted By

rabc on 06/22/11


Tagged

currency nsnumberformatter


Versions (?)

Brazilian Currency Format


 / Published in: Objective C
 

  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  

You need to login to post a comment.