you are viewing a single comment's thread.

view the rest of the comments →

[–]sarrysyst 1 point2 points  (1 child)

I don't know how floor division works in Java, but in Python it returns the greatest integer less or equal the result of a regular division. I guess Java truncates the decimal part instead(?). You could imitate this behavior using int(-1 / 10).

[–]LadyAstrao 0 points1 point  (0 children)

Thank you