---
title: math.Sum
description: Returns the sum of all numbers. Accepts scalars, slices, or both.
categories: []
params:
  functions_and_methods:
    aliases: []
    returnType: float64
    signatures: [math.Sum VALUE...]
---

```go-html-template
{{ math.Sum 1 (slice 2 3) 4 }} → 10
```
