// 保留两位小数
- (NSNumber *)toTheNearestHundredth:(CGFloat)originFloat {
if (originFloat == 0) {
return @0;
}
// 精确到百分位
NSInteger multiplyFloat = originFloat * 100;
CGFloat resultFloat = multiplyFloat * 1.0 / 100;
return [NSNumber numberWithFloat:resultFloat];
}