Swift : Convert (cast) Int to String ?
Problem :
How to convert (cast) Int to String in Swift programming language ?
Solution :
Just cast the Int variable with String() functon. For example :
let x : Int = 100
var str = String(x)
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
+16.3k Convert JSON to CSV in Golang
+13.4k Golang : Accurate and reliable decimal calculations
+19.2k PHP : Convert(cast) int to double/float
+4k Golang : Check if a word is countable or not
+37.8k Golang : How to iterate over a []string(array)
+7.2k Android Studio : Image button and button example
+12.4k Golang : Compress and decompress file with compress/flate example
+4.5k Golang : ROT32768 (rotate by 0x80) UTF-8 strings example
+16.5k Golang : Get all upper case or lower case characters from string example
+12.7k Elastic Search : Mapping date format and sort by date
+16.8k Golang : Iterating Elements Over A List
+9.4k Golang : Roll the dice example