mod
x % y
x mod y
mod(x, y)
Try it yourself:
$1 |
7 % 3
|
|
$2 |
11 % 2
|
|
$3 |
10 mod 4
|
|
$4 |
isOdd(x) = x % 2
|
|
$5 |
isOdd(2)
|
|
$6 |
isOdd(3)
|
See also:
All functions