> For both positive and negative numbers. > > 3 / 2 = 1 > -3 / 2 = -1 You’re right. I was confusing integer division by a power of two, with right-shifting. The bug was in my code all along. I apologise for wasting your time. Christina