Arithmetic/Integer: Difference between revisions

Content added Content deleted
No edit summary
(→‎{{header|APL}}: Added APL implementation.)
Line 316: Line 316:
WriteF('A mod B =\d\n', Mod(a,b))
WriteF('A mod B =\d\n', Mod(a,b))
ENDPROC</lang>
ENDPROC</lang>
=={{header|APL}}==
<lang apl>∇res ← test; l; r
l ← ⎕
r ← ⎕
res ← 6 2 ⍴ 'sum' (l+r) 'diff' (l-r) 'prod' (l×r) 'quot' (⌊l÷r) 'rem' (r|l) 'pow' (l*r)</lang>

Quotient will round down in this version.


=={{header|AutoHotkey}}==
=={{header|AutoHotkey}}==