I am trying to use the BITSHIFT operation as follows:
a = fi(3, true, 4, 0);b = bitshift(a, -1);
At the end of the BITSHIFT operation I expect the variable b to hold a value of 1. However, it holds a value of 2.
bitbitshiftleftleft-shiftrightright shiftshiftshiftingwrong
a = fi(3, true, 4, 0);b = bitshift(a, -1);
Best Answer