Returns the non-negative remainder of x / m.
x The operand.
x
m The modulus.
m
static num mod(num x, num m) => ((x % m) + m) % m;