SyntaxFix
Write A Post
Hire A Developer
Questions
Swift 3+: Try these line of code
let num: Double = 1.5 let str = String(format: "%.2f", num)