projog

4.11. mod - finds the remainder of division of one number by another.

The result has the same sign as the divisor (i.e. second argument).

Examples