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
+7.6k Golang : Detect sample rate, channels or latency with PortAudio
+38.3k Golang : Read a text file and replace certain words
+7.5k Golang : Scanf function weird error in Windows
+6.6k Golang : Handling image beyond OpenCV video capture boundary
+6.7k Golang : Embedded or data bundling example
+9.5k Golang : Timeout example
+18.6k Golang : Logging with logrus
+23.7k Golang : minus time with Time.Add() or Time.AddDate() functions to calculate past date
+9k Golang : Accept any number of function arguments with three dots(...)
+16.2k Golang : ROT47 (Caesar cipher by 47 characters) example
+8k Golang : How to feed or take banana with Gorilla Web Toolkit Session package
+7.2k Golang : Squaring elements in array