去掉浮点多余的0
时间:2014-11-06 16:47:25
收藏:0
阅读:221
当arg为5.000时,用%f输出5.000,想输出5用%g,如下:
[NSString stringWithFormat:@"%@:%g, %@:%g", L(@"STR_ID_TOPIC"), dto.topicCount, L(@"STR_ID_REPLY_NUM"), dto.replyCount]
原文:http://www.cnblogs.com/ftrako/p/4079009.html
评论(0)