Question : double to string swift
Answered by : troubled-termite-yon66b0cnije
let c: String = String(format: "%.1f", a)
print("c: \(c)") // c: 1.5
Source : https://stackoverflow.com/questions/25339936/swift-double-to-string | Last Update : Thu, 22 Oct 20