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
+4.3k Golang : Scan forex opportunities by Bollinger bands
+25.6k Golang : How to convert(cast) string to IP address?
+22.3k Golang : dial tcp: too many colons in address
+19.7k Golang : Securing password with salt
+20.9k Golang : Print out struct values in string format
+5.5k Android Studio : AlertDialog to get user attention example
+11.8k Golang : Submit web forms without browser by http.PostForm example
+4.9k Golang : Calculate pivot points for a cross
+15.5k How to enable MariaDB/MySQL logs ?
+10k Golang : Skip blank/empty lines in CSV file and trim whitespaces example
+9.8k Golang : Handle API query by curl with Gorilla Queries example
+2.1k Java : Get FX sentiment from website example