Is it possible to print the number 123.4567 as 123.46? What is the command for that. I can't find it in the Swift books.
Swift print command
Making sure that you have imported Foundation:
Code Block print(String(format: "%.2f", 123.4567))