Answers for "how to convert double to string in xcode swift"

1

double to string swift

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

print("c: (c)") // c: 1.5
Posted by: Guest on October-15-2020

Code answers related to "how to convert double to string in xcode swift"

Code answers related to "Swift"

Browse Popular Code Answers by Language