I need to create a string with format which can convert int, long, double etc. types into string. Using Obj-C, I can do it via below way.
NSString *str = [NS
No NSString required!
NSString
String(format: "Value: %3.2f\tResult: %3.2f", arguments: [2.7, 99.8])
or
String(format:"Value: %3.2f\tResult: %3.2f", 2.7, 99.8)