SUM

f = SUM (var1 [, …, varN])

Sum of value(s) var1 to varN. var1 to varN are single numbers or arrays.

Example

A = [1, 2, 3]
print sum(1, 2, 3)          ' Output: 6
print sum(A)                ' Output: 6
print sum(A, 1, 2, 3)       ' Output: 12
Math
If there is insufficient information on this page and you wish learn more about SUM, please send an email to smallbasic@gmail.com. You can help to improve information about SUM by submitting a pull request, click View Source for details. Note, an offline language reference text file is also available - see the Download section.