2017-11-14 数字形式とか Swift 3桁区切り let nf = NumberFormatter() nf.numberStyle = .decimal nf.groupingSeparator = "," nf.groupingSize = 3 let str = nf.string(from: NSNumber(integerLiteral: self))