处理四舍五入
NSTimeInterval Interval = 305.721125;
NSInteger timeInt = [[NSString stringWithFormat:@"%.0f", Interval] integerValue];
Interval:305.721125
timeInt:306
本文共 226 字,大约阅读时间需要 1 分钟。
处理四舍五入
NSTimeInterval Interval = 305.721125;
NSInteger timeInt = [[NSString stringWithFormat:@"%.0f", Interval] integerValue];
Interval:305.721125
timeInt:306
转载于:https://www.cnblogs.com/willbin/archive/2013/05/10/3071486.html