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
+54.9k Golang : Unmarshal JSON from http response
+12.9k Golang : List objects in AWS S3 bucket
+17.3k Golang : [json: cannot unmarshal object into Go value of type]
+14.2k How to automatically restart your crashed Golang server
+7.5k Golang : How to execute code at certain day, hour and minute?
+5.4k PHP : Convert string to timestamp or datestamp before storing to database(MariaDB/MySQL)
+4.7k Nginx and PageSpeed build from source CentOS example
+6.3k Golang : Totalize or add-up an array or slice example
+5.5k Golang : Struct field tags and what is their purpose?
+11k CodeIgniter : How to check if a session exist in PHP?
+10.8k How to test Facebook App on localhost ?
+4.7k HTTP common errors and their meaning explained