|
|
|
Modulo num1 num2
mod 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 num2.
Examples:
mod 4 3 ;1 ;-) mod 5 3 ;2 ;-) mod 6 3 ;0 ;-) mod 7 3 ;1 ;-) mod -7 3 ;2 ;-) Remainder -7 3 ;-1 ;-) mod [9 10 11][9 9 9] ;[0 1 2] ;-) |
|
|
|