iOS下的四舍五入

处理四舍五入

NSTimeInterval Interval = 305.721125;

NSInteger timeInt = [[NSString stringWithFormat:@"%.0f", Interval] integerValue];

 

Interval:305.721125

timeInt:306

posted @ 2013-05-10 16:54  willbin  阅读(272)  评论(0编辑  收藏  举报