Slide 112
Slide 112 text
Copyright © 2021 treastrain / Tanaka RyogaɹAll rights reserved.
Ϧετ
-JTUT
112
// ஈҰཡ
let items = [120, 250, 370, 490, 610, 730, 860, 980, 1100]
let itemFormatter = NumberFormatter()
itemFormatter.numberStyle = .currency
let formatter = ListFormatter()
formatter.itemFormatter = itemFormatter
print(formatter.string(from: items))
// Optional("¥120ɺ¥250ɺ¥370ɺ¥490ɺ¥610ɺ¥730ɺ¥860ɺ¥980ɺ¥1,100")