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
+12.5k Golang : Pass database connection to function called from another package and HTTP Handler
+5.8k Golang : Detect variable or constant type
+14.3k Golang : How to check if your program is running in a terminal
+12.5k Golang : Get absolute path to binary for os.Exec function with exec.LookPath
+7.9k Golang : Get all countries phone codes
+8.5k Golang : Progress bar with ∎ character
+6.2k WARNING: UNPROTECTED PRIVATE KEY FILE! error message
+16.7k Golang : Set up source IP address before making HTTP request
+12.7k Golang : http.Get example
+13.2k Golang : Linear algebra and matrix calculation example
+15.1k Golang : Get timezone offset from date or timestamp
+8.7k Golang : Get final balance from bit coin address example