Back to Home
Straight forward:
import Foundation let fmt = NSNumberFormatter() fmt.numberStyle = .DecimalStyle fmt.stringFromNumber(2358000) // "2,358,000"
GitHub • Twitter • Telegram • Email