Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

double to string swift

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

print("c: (c)") // c: 1.5
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #double #string #swift
ADD COMMENT
Topic
Name
1+1 =