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
+26.1k Golang : Convert IP address string to long ( unsigned 32-bit integer )
+13.8k Golang : Image to ASCII art example
+9.2k Golang : Write multiple lines or divide string into multiple lines
+7k Web : How to see your website from different countries?
+5.4k Unix/Linux/MacOSx : How to remove an environment variable ?
+8.8k Golang : Gorilla web tool kit schema example
+19.4k Golang : Get host name or domain name from IP address
+6.7k Golang : Reverse by word
+9.5k Golang : Get all countries currencies code in JSON format
+5.2k Golang : Issue HTTP commands to server and port example
+5.4k Golang : What is StructTag and how to get StructTag's value?
+9.5k Android Studio : Indicate progression with ProgressBar example