Answers for "swift string formating"

1

string.format swift

let str = String(format:"%d, %f, %ld", INT_VALUE, FLOAT_VALUE, DOUBLE_VALUE)

let str = "\(INT_VALUE), \(FLOAT_VALUE), \(DOUBLE_VALUE)"
Posted by: Guest on April-06-2020
0

string interpolation swift 5

let age = 30
let name = "Jotaro"

print("Hello my name is \(name) and I'm \(age) years old")
Posted by: Guest on March-14-2020

Code answers related to "Swift"

Browse Popular Code Answers by Language