Difference between % and mod

If you use the help feature ? mod you’ll see that % is an alias for rem(x, y), while mod(x,y) = rem(x,y, RoundDown). So these are slightly different functions.

3 Likes