Remainder

Help Contents Arithmetic Numeric Operations Remainder
Quotient Modulo

Remainder num1 num2


outputs the remainder on dividing "num1" by "num2"; both must be integers and the result is an integer with the same sign as num1.

Examples:

Remainder 4 3		;1  ;-)
Remainder 5 3		;2  ;-)
Remainder 6 3		;0  ;-)
Remainder 7 3		;1  ;-)
Remainder -7 3		;-1  ;-)
Modulo -7 3		;2  ;-)
Remainder [9 10 11][9 9 9]	;[0 1 2] ;-)

See also:

Examples:

References:

Quotient Modulo