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.2k Golang : Upload to S3 with official aws-sdk-go package
+7.5k Linux : How to fix Brother HL-1110 printing blank page problem
+12.9k Golang : Listen and Serve on sub domain example
+9.5k Golang : Web(Javascript) to server-side websocket example
+5.8k Golang : Struct field tags and what is their purpose?
+10.9k PHP : Convert(cast) bigInt to string
+6.1k Golang : How to verify input is rune?
+5.4k Golang : Pad file extension automagically
+8.8k Python : Fix SyntaxError: Non-ASCII character in file, but no encoding declared
+4.8k Linux/MacOSX : How to symlink a file?
+9k Golang : Gaussian blur on image and camera video feed examples
+12.8k Golang : Remove or trim extra comma from CSV