SyntaxFix
Write A Post
Hire A Developer
Questions
a simple way is:
import Foundation // required for String(format: _, _) print(String(format: "hex string: %X", 123456)) print(String(format: "a float number: %.5f", 1.0321))