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
+12.3k CodeIgniter : "Fatal error: Cannot use object of type stdClass as array" message
+10.5k Golang : Find age or leap age from date of birth example
+17k Golang : Put UTF8 text on OpenCV video capture image frame
+4.5k Golang : How to deal with configuration data?
+5.2k Golang : Get Hokkien(福建话)/Min-nan(閩南語) Pronounciations
+8.6k Golang : Qt Yes No and Quit message box example
+7.1k Golang : Regular Expression find string example
+12.1k Golang : Convert IPv4 address to packed 32-bit binary format
+15k Golang : Generate universally unique identifier(UUID) example
+28.7k Golang : Get and Set User-Agent examples
+13.4k Golang : Recombine chunked files example
+11.1k Golang : Save webcamera frames to video file