Swift : Convert (cast) Character to Integer?
Problem :
How to convert (cast) character to integer in Swift programming language ?
Solution :
Simple. Just cast the character variable with Int() function. For example :
let intchar = Int(character)
See also : Swift : Convert (cast) Int to String ?
By Adam Ng
IF you gain some knowledge or the information here solved your programming problem. Please consider donating to the less fortunate or some charities that you like. Apart from donation, planting trees, volunteering or reducing your carbon footprint will be great too.
Advertisement
Tutorials
+3.9k Nginx and PageSpeed build from source CentOS example
+5.2k PageSpeed : Clear or flush cache on web server
+8.6k Golang : Format strings to SEO friendly URL example
+30.6k Golang : Copy directory - including sub-directories and files
+14.2k Golang : How to login and logout with JWT example
+8k Golang : Intercept and compare HTTP response code example
+13.1k Golang : Send email with attachment(RFC2822) using Gmail API example
+8.8k Golang : Ordinal and Ordinalize a given number to the English ordinal numeral
+13.8k Golang : How to check for empty array string or string?
+15.5k Golang : File path independent of Operating System
+4k Google : Block or disable caching of your website content
+3.9k Python : Find out the variable type and determine the type with simple test