This is the documentation for the development version. There are no official binaries for it; build it from the source code in git. Download links on these pages work only after the release. For the current release, see version 7.0.

Math::Sum

Math::Sum(x, y, …​) ⇒ Number

Returns sum of given numbers or array(s) of numbers.

Table 1. Parameters

x, y, …​

number, Array

Comma separated numbers or array(s) of numbers

Return

Sum of values (as floating point number).

println(Math::Sum(2, 2)); // Will print "4.0"
println(Math::Sum(1, [2, 3])); // Will print "6.0"