github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/website/content/docs/job-specification/hcl2/functions/numeric/max.mdx (about) 1 --- 2 layout: docs 3 page_title: max - Functions - Configuration Language 4 description: The max function takes one or more numbers and returns the greatest number. 5 --- 6 7 # `max` Function 8 9 `max` takes one or more numbers and returns the greatest number from the set. 10 11 ## Examples 12 13 ```shell-session 14 > max(12, 54, 3) 15 54 16 ``` 17 18 If the numbers are in a list or set value, use `...` to expand the collection 19 to individual arguments: 20 21 ```shell-session 22 > max([12, 54, 3]...) 23 54 24 ``` 25 26 ## Related Functions 27 28 - [`min`](/docs/job-specification/hcl2/functions/numeric/min), which returns the _smallest_ number from a set.