Arithmetic/Integer: Difference between revisions
Content added Content deleted
Underscore (talk | contribs) (Added Perl 6.) |
Underscore (talk | contribs) m (→{{header|Perl 6}}: Spelling.) |
||
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 ' |
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 |