Name
mod
Synopsis
modDEST
,VAL
modDEST
,VAL1
,VAL2
Divide VAL1
by
VAL2
and return the remainder. If
VAL2
is omitted, divide
DEST
by VAL
.
The operation is defined as:
x mod y = x - y * floor(x / y)
Arguments: P, I or IR, I, I or NR, N, N or P, P, I or P, P, N
See also:
cmod
Get Perl 6 and Parrot Essentials, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.