In 18w31a, the %= operation was changed to use Java's Math.floorMod instead of %. However, the /= operation still uses Java's / instead of Math.floorDiv, which is inconsistent.
Create a new world:
Run the following commands:
With a consistent division algorithm, a = n*q + r, but this is not the case here.