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
+9k Golang : Random Rune generator
+8.9k Golang : Find and replace data in all files recursively
+28.8k Golang : Remove characters from string example
+7.8k Golang : Handle sub domain with Gin
+3.8k Nginx and PageSpeed build from source CentOS example
+9.3k Generate Random number with math/rand in Go
+7.1k Golang : Oanda bot with Telegram and RSI example
+22.9k Golang : Call function from another package
+5.6k Golang : How to setup a disk space used monitoring service with Telegram bot
+14.9k Golang : Generate QR codes for Google Authenticator App and fix "Cannot interpret QR code" error
+5k Linux/MacOSX : Search for files by filename and extension with find command
+11k Android Studio : Highlight ImageButton when pressed on example