Sum

logic · C078 · starter-package 7.0.1

Adds every finite number in a collection using compensated summation to reduce avoidable floating-point loss.

Input

  • Values (list, required): A list of finite numbers. An empty list is valid and returns zero.

Output

  • Result (number): Finite total.

Common uses

Total invoice lines, hours, quantities, scores, measurements, balances, or grouped data values.

Examples

  • [2, 4, 9] produces 15.
  • [] produces 0.

Errors and recovery

When this block reports an error, no downstream output is emitted. Correct the highlighted input or setting described by the message, then run the workflow again.

Non-arrays, invalid elements, infinities, NaN, and overflowing totals fail explicitly.

Connector data types

The type below is the data type that actually travels through the connection. Any additional validation is described separately in this block guide.

DirectionConnectorTypeRequired
Inputvalues — Valueslistyes
Outputresult — Resultnumberon success