摘要:
//一、NSString/*----------------创建字符串的方法----------------*/ //1、创建常量字符串。NSString *astring = @"This is a String!"; //2、创建空字符串,给予赋值。NSString *astring = [[N 阅读全文
摘要:
NSNumber *priceNum = [NSNumber numberWithFloat:123.125]; NSLog(@"----%@---",[NSString stringWithFormat:@"%.2f",round([priceNum floatValue]*100)/100]); 阅读全文