Convert integer to string

 Problem

I have an integer and want to convert it to its string equivalent.



 Recipe


// Integer value
let n = 1986

// Get String value from integer
var s = String(n)
print(s)


				


 Playground

Find answers here

Hi there! Ask Us a Question We are ready to help