Raku Books / Perl 6 at a Glance / Operators / Numerical operators
+, -, *, /
+, -, *, and /
are the operators executing the corresponding arithmetical operations
and do not require any comments. When working with Perl 6, keep in mind
that before the operation is executed, the operands will be
automatically converted to the Numeric type if it is
necessary.
% is the modulo operator returning the remainder of the
integer division. The operands are cast to integers first if
necessary.
Course navigation
← Numerical operators | div, mod →