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
+5k nginx : force all pages to be SSL
+6.5k Golang : Word limiter example
+39.8k Golang : How to count duplicate items in slice/array?
+38.2k Golang : How to iterate over a []string(array)
+12.3k Golang : Qt progress dialog example
+5k PHP : Get client IP address
+3k Java : Random alphabets, alpha-numeric or numbers only string generator
+8.1k Golang : automatically figure out array length(size) with three dots
+18.9k Golang : Accept input from user with fmt.Scanf skipped white spaces and how to fix it
+5.6k Golang : Break string into a slice of characters example
+12.5k Golang : reCAPTCHA example
+15k Golang : Read a file line by line