github.com/hugorut/terraform@v1.1.3/website/docs/language/functions/floor.mdx (about)

     1  ---
     2  page_title: floor - Functions - Configuration Language
     3  description: |-
     4    The floor function returns the closest whole number less than or equal to
     5    the given value.
     6  ---
     7  
     8  # `floor` Function
     9  
    10  `floor` returns the closest whole number that is less than or equal to the
    11  given value, which may be a fraction.
    12  
    13  ## Examples
    14  
    15  ```
    16  > floor(5)
    17  5
    18  > floor(4.9)
    19  4
    20  ```
    21  
    22  ## Related Functions
    23  
    24  * [`ceil`](/language/functions/ceil), which rounds to the nearest whole number _greater than_
    25    or equal.