阅读背景:

NSString -浮点数的最大小数

来源:互联网 

I would like to use a float in a NSString. I used the stringWithFormat and a %f to integrate my float into the NSString. The problem is that I would like to display only one decimal (%.1f) but when there is no decimals I don't want to display a '.0' . I would like to use a float in a NSString. I us




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: