In Operators§

See primary documentation in context for infix %

multi sub infix:<%>($x$y --> Numeric:D)

Modulo operator. Coerces to Numeric first.

Generally the following identity holds:

my ($x$y= 1,2;
$x % $y == $x - floor($x / $y* $y