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
+23.1k Golang : Time slice or date sort and reverse sort example
+5.4k CodeIgniter : form input set_value cause " to become & quot
+10.3k Golang : Concurrency and goroutine example
+7.5k Golang : How to join strings?
+5.7k Golang : Check if password length meet the requirement
+13.1k Golang : Overwrite previous output with count down timer
+32.6k Golang : Proper way to set function argument default value
+5.4k Golang : Convert an executable file into []byte example
+5.1k Javascript : Get operating system and browser information
+12.3k Golang : Strings comparison
+17.1k Golang : Implement getters and setters
+6.3k Android Studio : AlertDialog to get user attention example