if 107/9=11it's okif -107/9=-12how?
I don't see where's the problem. You always get the largest number which is smaller than or equal to the result, which is the behavior of java.lang.Math#floorDiv function.
java.lang.Math#floorDiv
See also MC-135431.
Reporter: Hunter
Assignee: (Unassigned)
Created: 2019-12-15T13:06:19Z
Updated: 2025-04-14T23:20:26Z
Resolved: 2019-12-16T14:44:35Z
ADO:
Confirmation Status: Unconfirmed
Area:
Mojang Priority:
Category: (Unassigned)
Labels:
Affects Versions: 1.15.1 Pre-release 1
Fix Versions:
Retrieved 2025-06-09T18:07:27Z
I don't see where's the problem. You always get the largest number which is smaller than or equal to the result, which is the behavior of
java.lang.Math#floorDiv
function.See also MC-135431.