Arithmetic/Integer: Difference between revisions

m
m (capitalized 'Task header.)
Line 1,471:
=={{header|J}}==
<lang j>calc =: + , - , * , <.@% , |~ , ^</lang>
The function <code>calc</code> constructs a list of numeric results for this task. The implementation of integer division we use here (<code><.@%.</code>) rounds down (towards negative infinity), and this is compatible with the remainder implementation we use here.
<lang j> 17 calc 3
20 14 51 5 2 4913</lang>
6,962

edits