+(NSString *)ThousandWithString:(NSString *)str{
str=ZLIFISNULL(str);
if(str.length==0){
return@"0.00";
}
else{
NSNumberFormatter *moneyFormatter =[[NSNumberFormatter alloc]init];
moneyFormatter.positiveFormat = @"###,##0.00";
return [moneyFormatter stringFromNumber:@([str floatValue])];
}
}
网友评论