# LIST_STAT_SUM

*LSL constant*

```lsl
integer LIST_STAT_SUM = 6;
```

Option used with llListStatistics to calculate the sum of the numbers in the list.

Constant groups: [ListStatisticsOperation](/constants/groups/ListStatisticsOperation/)

Calculates the sum of the numbers in a list.

## Examples

<details open>
<summary>Example 1</summary>

```lsl
float sum = llListStatistics( LIST_STAT_SUM, numList );
```

</details>

## See also

### Functions

- [llListStatistics](/functions/llListStatistics/)

---

*Source: [LIST STAT SUM](https://wiki.secondlife.com/wiki/LIST_STAT_SUM) on the Second Life Wiki. Content from the Second Life Wiki article LIST STAT SUM (revision 1194666, 2015-01-23), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/constants/LIST_STAT_SUM/
