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
+8.4k Golang : Count leading or ending zeros(any item of interest) example
+5.3k Golang : Calculate half life decay example
+12.2k Golang : Sort and reverse sort a slice of runes
+15.3k Golang : Get timezone offset from date or timestamp
+19.6k Golang : Example for DSA(Digital Signature Algorithm) package functions
+8.4k Golang : Check if integer is power of four example
+7.1k Golang : Gargish-English language translator
+10.2k Golang : How to tokenize source code with text/scanner package?
+14.5k Golang : Find network of an IP address
+39.8k Golang : Remove dashes(or any character) from string
+8.8k Golang : Executing and evaluating nested loop in html template
+8.8k Golang : Combine slices but preserve order example