I need to convert a Double to String with a limit on max number of digits in Swift. I am using the following to limit the digits after decimal to 2.
numberString = String(format: "%.02f", 0.4394)
How to do something similar but limit the whole number to 5 digits i.e. 9438.45 to 9438.5