📜  double to string swift 代码示例

📅  最后修改于: 2022-03-11 15:01:00.634000             🧑  作者: Mango

代码示例1
let c: String = String(format: "%.1f", a)

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