Closed WesselvanGils closed 2 years ago
This is because the Overwatch workshop returns zero when raising a negative value to a power: -2^2 = 0.
This should give the behavior you are looking for, if Ticker
will always be a whole number: 2 ^ Ticker * (Ticker % 2 == 0 ? 1 : -1)
Exactly as the title says,
If you take any negative number and use ^ to raise it to the power of a variable the result will compile to be 0
steps to reproduce:
the result should look like this: