Skip to content

Instantly share code, notes, and snippets.

@nolili
Created January 25, 2016 11:12
Show Gist options
  • Save nolili/0282d53169ada122f7b6 to your computer and use it in GitHub Desktop.
Save nolili/0282d53169ada122f7b6 to your computer and use it in GitHub Desktop.
Int -> Kanji
let n = 1234567890
let formatter = NSNumberFormatter()
formatter.locale = NSLocale(localeIdentifier: "ja_JP")
formatter.numberStyle = .SpellOutStyle
let str = formatter.stringFromNumber(n)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment