Does someone want to tell me why "dx = math.sin(1);" returns an accurate number, but "a = 1; dx = math.sin(a);" returns "NaN"?
That is stupid as hell. Seriously, if somebody knows a workaround, I'm all ears. Unless it's to make "a" into a "Number", which I already tried.
Edit: Fascinating. It works if I write "Math.sin" instead of "math.sin". But then why did it work at all? The hell?
This has been your daily dose of stupid fiddly debugging.