摘要: //一、NSString/*----------------创建字符串的方法----------------*/ //1、创建常量字符串。NSString *astring = @"This is a String!"; //2、创建空字符串,给予赋值。NSString *astring = [[N 阅读全文
posted @ 2016-02-26 18:27 应有梦 阅读(249) 评论(0) 推荐(0) 编辑
摘要: NSNumber *priceNum = [NSNumber numberWithFloat:123.125]; NSLog(@"----%@---",[NSString stringWithFormat:@"%.2f",round([priceNum floatValue]*100)/100]); 阅读全文
posted @ 2016-02-26 18:24 应有梦 阅读(1858) 评论(0) 推荐(0) 编辑