开发者

How to format float number (Objective-C)

i would like to know how to format float number.

Float         开发者_开发百科 Want to display
1.0            1                   
1.52           1.5
1.58           1.6


Would the format string @"%.1g" do it?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜