The sum() function returns the sum of a list of numbers delimited by attribute, value, or subvalue marks. If different orders of marks are present, the sum() function computes the sum of each sublist.
sum(str.exp)
str.exp | List of numbers, delimited by attribute, value, or subvalue marks, from which the sum is calculated. |
The sum() function supports string math.
The result, 6.2, displays on the terminal.
crt sum(3:@am:3.2)
The result, 6.2^8, prints because sum recognizes that there were two lists present, separated by an attribute mark.
print sum(3:@vm:3.2:@am:6:@vm:2)