double to string swift

Swift
let c: String = String(format: "%.1f", a)

print("c: \(c)") // c: 1.5

Source

Also in Swift: