📘 Numeric operator %% in Perl 6

📘 Numeric operator %% in Raku

N. B. Perl 6 has been renamed to Raku. Click to read more.


%% is the so-called divisibility operator: it tells if the integer division with no remainder is possible for the given pair of operands.

say 10 %% 3; # False
say 12 %% 3; # True

Leave a Reply