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
+11.4k Golang : convert(cast) float to string
+5.6k nginx : force all pages to be SSL
+6.6k Golang : Gargish-English language translator
+7.2k Gogland : Single File versus Go Application Run Configurations
+10.3k Golang : Underscore string example
+9.7k Golang : Detect number of faces or vehicles in a photo
+13.3k Golang : Tutorial on loading GOB and PEM files
+23.4k Golang : Use regular expression to validate domain name
+15.5k Golang : Update database with GORM example
+11k Golang : Format numbers to nearest thousands such as kilos millions billions and trillions
+6.4k Golang : Calculate pivot points for a cross