Arithmetic/Integer: Difference between revisions

Content added Content deleted
(Added Perl 6.)
Line 669: Line 669:
say 'integer quotient: ', $a div $b;
say 'integer quotient: ', $a div $b;
say 'remainder: ', $a % $b;
say 'remainder: ', $a % $b;
say 'exponentation: ', $a**$b;</lang>
say 'exponentiation: ', $a**$b;</lang>


Note that <code>div</code> doesn't always do integer division; it performs the operation "most appropriate to the
Note that <code>div</code> doesn't always do integer division; it performs the operation "most appropriate to the