binary operator * cannot be applied to operands of type Int and Double

You should convert one type to the other one so both variable should be the same types:

var result: Double = Double(textfield) * VAT

Leave a Comment

error code: 523