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
+13.3k Golang : Read integer from file into array
+18.5k Golang : Print leading(padding) zero or spaces in fmt.Printf?
+18.1k Golang : Create and resolve(read) symbolic links
+3.5k Golang : micron to centimeter example
+22.5k Golang : How to read integer value from standard input ?
+24k Golang : Find files by extension
+4.3k List of Golang XML tutorials
+31.1k Golang : Validate IP address
+6k Golang : Configure Apache and NGINX to access your Go service example
+20.3k Golang : Randomly pick an item from a slice/array example
+7.5k Golang : ffmpeg with os/exec.Command() returns non-zero status
+26.4k Golang : Get and Set User-Agent examples