I am a designer learning Swift, and I'm a beginner.
I have no experience.
I am trying to create a tip calculator using the base code in an Xcode playground.
Here is what I still have.
var billBeforeTax = 100 var taxPercentage = 0.12 var tax = billBeforeTax * taxPercentage
I get an error message:
The binary operator '*' cannot be applied to operands of type 'Int' and 'Double'
Does this mean that I cannot multiply doubling?
Did I miss any basic concepts of variables and doubles here?
variables double swift multiplying
bmoondesign
source share