Name
mod
Synopsis
modDEST
,VAL
modDEST
,VAL1
,VAL2
Divide VAL1
by
VAL2
and return the remainder. If
VAL2
is left off, divide
DEST
by VAL
.
The operation is defined as:
x mod y = x - y * floor(x / y)
Get Perl 6 Essentials 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.