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
+5.9k Golang : Experimenting with the Rejang script
+6.4k Golang : Combine slices of complex numbers and operation example
+11.5k SSL : The certificate is not trusted because no issuer chain was provided
+21.3k Golang : How to read float value from standard input ?
+11.6k Golang : convert(cast) float to string
+21.4k Golang : Encrypt and decrypt data with TripleDES
+8k Android Studio : Rating bar example
+5.6k Golang : ROT32768 (rotate by 0x80) UTF-8 strings example
+10.9k Golang : Fix go.exe is not compatible with the version of Windows you're running
+22.8k Golang : Test file read write permission example
+7k Golang : Gorrila mux.Vars() function example