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
+24.4k Golang : How to write CSV data to file
+16.9k Golang : Iterating Elements Over A List
+15.4k Golang : Set up source IP address before making HTTP request
+6.4k Javascript : Push notifications to browser with Push.js
+6.1k Golang : Validate credit card example
+5.5k Golang : Find the longest line of text example
+9.1k Golang : How to tokenize source code with text/scanner package?
+10.1k CodeIgniter : How to check if a session exist in PHP?
+7.1k Golang : Reverse text lines or flip line order example
+10.8k Golang : Simple client-server HMAC authentication without SSL example
+9.6k Golang : Create Temporary File
+10.5k Golang : Sort and reverse sort a slice of runes