github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/website/content/docs/job-specification/hcl2/functions/numeric/ceil.mdx (about)

     1  ---
     2  layout: docs
     3  page_title: ceil - Functions - Configuration Language
     4  sidebar_title: ceil
     5  description: |-
     6    The ceil function returns the closest whole number greater than or equal to
     7    the given value.
     8  ---
     9  
    10  # `ceil` Function
    11  
    12  `ceil` returns the closest whole number that is greater than or equal to the
    13  given value, which may be a fraction.
    14  
    15  ## Examples
    16  
    17  ```shell-session
    18  > ceil(5)
    19  5
    20  > ceil(5.1)
    21  6
    22  ```
    23  
    24  ## Related Functions
    25  
    26  - [`floor`](/docs/job-specification/hcl2/functions/numeric/floor), which rounds to the nearest whole number _less than_
    27    or equal.