Add bias before dividing. To avoid ovderflow issues with negative numbers you need to round the result correctly. This can done b adding a "bias" for negative numbers before dividing by 64.