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

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