Arithmetic/Integer: Difference between revisions
m
→{{header|Raku}}: update obsoleted explainer
SqrtNegInf (talk | contribs) m (→{{header|Raku}}: update obsoleted explainer) |
|||
Line 4,418:
=={{header|Raku}}==
(formerly Perl 6)
<lang perl6>my Int $a = get.floor;
my Int $b = get.floor;
Line 4,428 ⟶ 4,429:
say 'remainder: ', $a % $b;
say 'exponentiation: ', $a**$b;</lang>
▲operand types". [http://perlcabal.org/syn/S03.html#line_729 Synopsis 3] guarantees that <code>div</code> "on built-in integer types is equivalent to taking the floor of a real division". If you want integer division with other types, say <code>floor($a/$b)</code>.
=={{header|Raven}}==
|