Documentation for infix %

Documentation for infix %, assembled from the following types:

language documentation Operators

From Operators

(Operators) 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