Momentum = (Value1-Value1[offset])*scaleFactor;
The above expression compiles OK, but the results are incorrect, while if I just change to using two separate expressions:
Momentum = Value1-Value1[offset];
Mom = Momentum*ScaleFactor;
Then the results are correct.
Looks like a 'bug' to me
