當前位置:
首頁 >
去掉浮点多余的0
發布時間:2025/5/22
27
豆豆
當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]
轉載于:https://www.cnblogs.com/ftrako/p/4079009.html
總結
- 上一篇: ED/EP系列5《消费指令》
- 下一篇: jquery上传图片