NSNumberFormatter *formatter = [[NSNumberFormatter alloc]init];
formatter.numberStyle = NSNumberFormatterSpellOutStyle;
NSString*str = [formatterstringFromNumber:@(53246)];
NSLog(@"%@",str);//输出:五万三千二百四十六
NSNumberFormatter *formatter = [[NSNumberFormatter alloc]init];
formatter.numberStyle = NSNumberFormatterSpellOutStyle;
NSString*str = [formatterstringFromNumber:@(53246)];
NSLog(@"%@",str);//输出:五万三千二百四十六
本文标题:macos iOS 数字转文字
本文链接:https://www.haomeiwen.com/subject/bpxlyctx.html
网友评论