⚖️remainder vs. modulo vs. mod
🚧 under construction
JS ⟩ operator ⟩ arithmetic ⟩ remainder vs. modulo
r
=
a
-
b
*
q
where:
a % b:
r
has the same sign asa
.modulo(a, b):
r
has the same sign asb
.mod(a, b): (remainder in math)
Last updated
🚧 under construction
JS ⟩ operator ⟩ arithmetic ⟩ remainder vs. modulo
r
=
a
-
b
*
q
where:
a % b:r
has the same sign asa
.
modulo(a, b):r
has the same sign asb
.
mod(a, b): (remainder in math)
Last updated