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
+34k Golang : convert(cast) bytes to string
+5.8k Fix yum-complete-transaction error
+6.7k Golang : Calculate diameter, circumference, area, sphere surface and volume
+6.7k Golang : Spell checking with ispell example
+5.6k Golang *File points to a file or directory ?
+48.8k Golang : Upload file from web browser to server
+29.6k Golang : JQuery AJAX post data to server and send data back to client example
+6.7k Golang : Combine slices of complex numbers and operation example
+22.9k Golang : Set and Get HTTP request headers example
+19k Golang : Delete duplicate items from a slice/array
+7.8k Golang : Set horizontal, vertical scroll bars policies and disable interaction on Qt image