aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs/content/en/functions/math/Max.md
blob: 9beff563006dafea4ed9001a0766d8e3f17cd3dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
---
title: math.Max
description: Returns the greater of all numbers. Accepts scalars, slices, or both.
categories: []
keywords: []
action:
  aliases: []
  related:
    - functions/math/Min
  returnType: float64
  signatures: [math.Max VALUE...]
---

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