I would like to calculate an amount based on the percentage of another, however I find myself jumping between Double and Integer types and the whole thing is quite ugly, is there a more angelic way of writing the following please?
let life: Int = 83
let tomatoes: Int = 14
let yield: Double = ((Double(life) / 100.0) * Double(tomatoes))
print("Yield = \(Int(yield.rounded()))lb")