github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/website/content/docs/job-specification/hcl2/functions/numeric/min.mdx (about)

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