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
+6.3k Golang : Scan forex opportunities by Bollinger bands
+38.4k Golang : Read a text file and replace certain words
+25.6k Golang : Convert long hexadecimal with strconv.ParseUint example
+36.9k Golang : Display float in 2 decimal points and rounding up or down
+6.9k Golang : Get expvar(export variables) to work with multiplexer
+17.8k Golang : Clone with pointer and modify value
+21.1k PHP : Convert(cast) int to double/float
+5.5k Golang : Qt update UI elements with core.QCoreApplication_ProcessEvents
+10.1k Golang : Get escape characters \u form from unicode characters
+31.8k Golang : bufio.NewReader.ReadLine to read file line by line
+10.7k Golang : Bubble sort example
+5.1k Google : Block or disable caching of your website content