projog

4.16. rem - finds the remainder of division of one number by another.

The result has the same sign as the dividend (i.e. first argument).

Examples