Skip to content

Total

Total[list] sums all the values in list.

Attributes[Total] := {Protected}

Simple examples

In[1]:= Total[{1, 2, 3, 4}]
Out[1]= 10

Further examples

The total of an empty list is zero:

In[1]:= Total[{}]
Out[1]= 0