Mwnci sum() Function

Syntax

sum(array)

Description

The sum() function returns a number, the sum of all items in an array.

Example

a=[1,2,3,4]
println(sum(a))
a=[1,2,3,4,5.1]
println(sum(a))


10
15.1