github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/website/content/docs/job-specification/hcl2/functions/numeric/min.mdx (about) 1 --- 2 layout: docs 3 page_title: min - Functions - Configuration Language 4 sidebar_title: min 5 description: The min function takes one or more numbers and returns the smallest number. 6 --- 7 8 # `min` Function 9 10 `min` takes one or more numbers and returns the smallest number from the set. 11 12 ## Examples 13 14 ```shell-session 15 > min(12, 54, 3) 16 3 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 > min([12, 54, 3]...) 24 3 25 ``` 26 27 ## Related Functions 28 29 - [`max`](/docs/job-specification/hcl2/functions/numeric/max), which returns the _greatest_ number from a set.