1 2 3 4 5 6 7 8 9
from .java.lang.Integer import Integer from .java.lang.Boolean import Boolean def _div_round_to_zero(a, b): return -(-a // b) if (a < 0) ^ (b < 0) else a // b def _mod_round_to_zero(a, b): return -(-a % b) if (a < 0) ^ (b < 0) else a % b