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
+19.4k Golang : Calculate entire request body length during run time
+9k Android Studio : Image button and button example
+9.6k Mac OSX : Get a process/daemon status information
+31k Golang : Download file example
+10.1k Golang : Get escape characters \u form from unicode characters
+12.8k Golang : Remove or trim extra comma from CSV
+5.3k Golang : Issue HTTP commands to server and port example
+13.8k Golang : Set image canvas or background to transparent
+24.7k Golang : How to validate URL the right way
+29.5k Golang : JQuery AJAX post data to server and send data back to client example
+5.5k Golang : Display advertisement images or strings on random order
+17.5k Golang : How to tell if a file is compressed either gzip or zip ?