Last active
August 10, 2017 00:45
-
-
Save y13i/e1329a007bfc3427ccab2fb7821a3e5e to your computer and use it in GitHub Desktop.
Swift 3 で16進数文字列と整数の相互変換 ref: http://qiita.com/y13i/items/9af41a1cb507a4b388e0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String(42, radix: 16) // => "2a" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Int("2a", radix: 16)! // => 42 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment