I want to set the title for a button with a double number.
The problem is that the function always cuts a zero, if the last number is a 0.
var number1: Double = 3.99
var number2: Double = 4.30
button.setTitle(\(number1), for: .normal) //Title is 3.99
button.setTitle(\(number2), for: .normal) // Title is 4.3 but hast to be 4.30
I tried to convert it with String(number2), but the title is 4.3 too.