到万,

+ (NSString*)countStr:(int)count

{

    NSString* countStr = [NSString stringWithFormat:@"%d", count];

    if (count >= 10000) {

        float c = count / 10000.0f;

        if (c - (int)c >= .1f) {

            countStr = [NSString stringWithFormat:@"%.1f", c];

        }

        else {

            countStr = [NSString stringWithFormat:@"%.0f", c];

        }

    }

    return countStr;

}

posted @ 2013-09-30 09:40  路在脚下,  阅读(157)  评论(0编辑  收藏  举报