NSNumber数据格式转换

NSNumberFormatter *numberFormatter = [[NSNumberFormatter alloc] init];
                numberFormatter.numberStyle = NSNumberFormatterRoundFloor;
  [numberFormatter setPositiveFormat:@"###,##0.00元;"];
 NSString *test = [numberFormatter stringFromNumber:number];

你可能感兴趣的:(NSNumber数据格式转换)