I'm receiving what appears to be a relatively common error in my code, but examples of solutions to it on other questions didn't appear to be quite relevant to my situation. For example; (binary operator '/' cannot be applied to two 'Double' operands)
let variable1 = Double()
let variable2 = Double()
let array = [5, 10]
var variable3 = Double()
func function() {
let variable1 = 50 / variable2
let variable3 = Double(arc4random_uniform(UInt32(Double(array.count))))
let scaleAction = SKAction.scale(by: variable1 * variable3, duration: 1)
That's all the relevant code anyway. For whatever reason I receive an error, focused on the multiplication star in the last line, saying that the "Binary operator "*" cannot be applied to two "Double" operands. Why can't it? And is there a way I can fix this?
Thanks in advance.