Hi,
I'm new to Swift from an Objective-C background.
I'm confused about string interpolation. All of the examples I've ever seen, as well as all of the instances in existing code that I have read, look like this:
"I have \(dollars) dollars"
In Objective-C, as well as c++ and other languages, we use format specifiers to describe how we want variables to appear inside a string. For numbers, I can specify things like number of decimal places, zero padding, or the desired numerical base. How is this done in Swift?
Thanks,
Frank