# array.sum()

The sum of values in an array. If the array parameter value is
an empty array, returns zero.

```
array.sum( )
```

**Returns:** number

*This function does not take any arguments.*

# Examples

```cfml
number = [10,20,30,40,50,60,70];
res = number.sum();
writeDump(res);
number = [0.1,0.2,0.3,0.4,0.5,0.6,0.7];
res = number.sum();
writeDump(res);
```

# Categories

[Arrays](../../../categories/array.md)

# See Also

[ArraySum()](../../functions/arraysum.md), [Array](../array.md)