Returns the remainder after dividing a by b.
a
b
This is the modulo operation, which follows the sign of the dividend (a).
The dividend.
The divisor.
The remainder of a divided by b.
Will throw an error if b is zero.
modulo(10, 3); // returns 1modulo(-10, 3); // returns -1modulo(10, -3); // returns 1 Copy
modulo(10, 3); // returns 1modulo(-10, 3); // returns -1modulo(10, -3); // returns 1
Returns the remainder after dividing
abyb.This is the modulo operation, which follows the sign of the dividend (
a).