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