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
+9.6k Golang : Command line file upload program to server example
+3.9k Golang : A program that contain another program and executes it during run-time
+20.6k Golang : How to reverse slice or array elements order
+10.7k Golang : Decompress zlib file example
+9.1k Golang : Resolve domain name to IP4 and IP6 addresses.
+5.3k Apt-get to install and uninstall Golang
+10.7k Golang : Detect user location with HTML5 geo-location
+14.9k Golang : convert string or integer to big.Int type
+12k Golang : Calculate elapsed years or months since a date
+5k Golang : How to verify input is rune?
+16.5k Golang : Put UTF8 text on OpenCV video capture image frame
+5.1k Javascript : Get operating system and browser information