NSNumber *priceNum = [NSNumber numberWithFloat:123.125];

            NSLog(@"----%@---",[NSString stringWithFormat:@"%.2f",round([priceNum floatValue]*100)/100]);

    //123.13

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-02
  • 2022-12-23
  • 2021-11-24
  • 2021-11-02
猜你喜欢
  • 2021-06-05
  • 2022-12-23
  • 2021-12-28
  • 2021-11-20
  • 2022-12-23
相关资源
相似解决方案