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
+13.5k Golang : convert(cast) string to float value
+13.9k Golang : Recombine chunked files example
+11.3k Golang : GTK Input dialog box examples
+5.4k Fix yum-complete-transaction error
+20.2k Golang : Underscore or snake_case to camel case example
+14k Golang : Parsing or breaking down URL
+7k Golang : Create zip/ePub file without compression(use Store algorithm)
+22.6k Golang : Get ASCII code from a key press(cross-platform) example
+10.1k Swift : Convert (cast) String to Integer
+5.5k Unix/Linux : How to open tar.gz file ?
+18.8k Golang : Execute shell command
+18k Golang : Find IP address from string