(((difference - previousStep)/1000)^2)
Why can't I use the ^ operator with doubles? I just want to know why. Luckily for me, I can just have a few differences - the previous step on its own, because I just squared it, but if I need to bring it to the N-th power, then this will be a problem. So why can't you double and is there a way around this?
source
share