github.com/rstandt/terraform@v0.12.32-0.20230710220336-b1063613405c/website/docs/configuration/functions/ceil.html.md (about)

     1  ---
     2  layout: "functions"
     3  page_title: "ceil - Functions - Configuration Language"
     4  sidebar_current: "docs-funcs-numeric-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  -> **Note:** This page is about Terraform 0.12 and later. For Terraform 0.11 and
    13  earlier, see
    14  [0.11 Configuration Language: Interpolation Syntax](../../configuration-0-11/interpolation.html).
    15  
    16  `ceil` returns the closest whole number that is greater than or equal to the
    17  given value, which may be a fraction.
    18  
    19  ## Examples
    20  
    21  ```
    22  > ceil(5)
    23  5
    24  > ceil(5.1)
    25  6
    26  ```
    27  
    28  ## Related Functions
    29  
    30  * [`floor`](./floor.html), which rounds to the nearest whole number _less than_
    31    or equal.