powered by
mod(x, y) rem(x, y)
vector
# same results with x, y having the same sign mod(5, 3) rem(5, 3) # same results with x, y having different signs mod(-5, 3) rem(-5, 3)
Run the code above in your browser using DataLab