How can I convert Int64 to String in swift?

987 views Asked by At

I want to convert the value of Int64 variable to String. String(x) is not working here.

1

There are 1 answers

0
Blacksmith On
let number: Int64 = 64
let string: String = "\(number)"
print(string)

output

64
Program ended with exit code: 0