I\'m a designer looking into learning Swift and I\'m a beginner.
I have no experience whatsoever.
I\'m trying to create a tip calculator using basic code in
You just have to cast your int variable to Double as below:
var billBeforeTax = 100 var taxPercentage = 0.12 var tax = Double(billBeforeTax) * taxPercentage