scorer = NSNumberFormatter() scorer.numberStyle = .DecimalStyle scorer.groupingSeparator = "," scorer.groupingSize = 3 scorer.stringFromNumber(score)
printf 的なことがしたい場合は
String(format: "%d", score)
scorer = NSNumberFormatter() scorer.numberStyle = .DecimalStyle scorer.groupingSeparator = "," scorer.groupingSize = 3 scorer.stringFromNumber(score)
printf 的なことがしたい場合は
String(format: "%d", score)