标签:
NSNumber *priceNum = [NSNumber numberWithFloat:123.125];
NSLog(@"----%@---",[NSString stringWithFormat:@"%.2f",round([priceNum floatValue]*100)/100]);
//123.13
iOS 取后两位并且四舍五入
原文地址:http://www.cnblogs.com/guochaoboke/p/5221467.html