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
+18.1k Golang : Put UTF8 text on OpenCV video capture image frame
+6k Java : Human readable password generator
+5.9k Golang : Extract unicode string from another unicode string example
+11.2k Golang : Intercept and process UNIX signals example
+17.4k Golang : Multi threading or run two processes or more example
+23.5k Golang : minus time with Time.Add() or Time.AddDate() functions to calculate past date
+8.4k Golang : How to check variable or object type during runtime?
+6.7k Golang : Find the longest line of text example
+18.5k Golang : Set, Get and List environment variables
+23.1k Golang : Randomly pick an item from a slice/array example