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
+22k Find and replace a character in a string in Go
+14.2k Golang : Get current time from the Internet time server(ntp) example
+5.2k Golang : Experimental emojis or emoticons icons programming language
+15.5k Golang : How to generate QR codes?
+18.2k Golang : Convert seconds to human readable time format example
+8.9k Golang : Find and replace data in all files recursively
+9.8k Golang : Removes punctuation or defined delimiter from the user's input
+23.4k Golang : Create PDF file from HTML file
+4.2k Golang *File points to a file or directory ?
+25.3k Golang : Force your program to run with root permissions
+32.5k Golang : Call a function after some delay(time.Sleep and Tick)
+4.5k Golang : fmt.Println prints out empty data from struct