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
+7.4k Golang : Not able to grep log.Println() output
+7.2k Javascript : How to get JSON data from another website with JQuery or Ajax ?
+8.2k Golang : Multiplexer with net/http and map
+21.3k Golang : How to get time zone and load different time zone?
+16k Golang : Update database with GORM example
+41.4k Golang : How to count duplicate items in slice/array?
+5.7k Unix/Linux : How to find out the hard disk size?
+4.8k Fix Google Analytics Redundant Hostnames problem
+12.6k Golang : HTTP response JSON encoded data
+10.7k Golang : Flip coin example
+9.5k Golang : Create unique title slugs example
+12.7k Golang : Get absolute path to binary for os.Exec function with exec.LookPath