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
+17.3k Golang : Linked list example
+25.1k Golang : Generate MD5 checksum of a file
+11.6k Golang : How to detect a server/machine network interface capabilities?
+5.3k Golang *File points to a file or directory ?
+8.7k Golang : Accept any number of function arguments with three dots(...)
+7.9k Golang : Multiplexer with net/http and map
+5.3k Gogland : Datasource explorer
+13.5k Generate salted password with OpenSSL example
+13k Golang : Convert(cast) int to int64
+14.7k Golang : Basic authentication with .htpasswd file
+18k Golang : Get command line arguments
+5.7k Golang : Error handling methods