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.9k Golang : Compress and decompress file with compress/flate example
+11.1k Golang : Proper way to test CIDR membership of an IP 4 or 6 address example
+9.9k CodeIgniter : Load different view for mobile devices
+4.8k JQuery : Calling a function inside Jquery(document) block
+23.5k Golang : minus time with Time.Add() or Time.AddDate() functions to calculate past date
+9.8k Golang : Get current, epoch time and display by year, month and day
+7.3k Golang : Individual and total number of words counter example
+18.3k Golang : How to remove certain lines from a file
+6.9k Golang : How to setup a disk space used monitoring service with Telegram bot
+7k Golang : Squaring elements in array
+9.7k Golang : Detect number of active displays and the display's resolution