github.com/kanishk98/terraform@v1.3.0-dev.0.20220917174235-661ca8088a6a/website/docs/language/functions/ceil.mdx (about) 1 --- 2 page_title: ceil - Functions - Configuration Language 3 description: |- 4 The ceil function returns the closest whole number greater than or equal to 5 the given value. 6 --- 7 8 # `ceil` Function 9 10 `ceil` returns the closest whole number that is greater than or equal to the 11 given value, which may be a fraction. 12 13 ## Examples 14 15 ``` 16 > ceil(5) 17 5 18 > ceil(5.1) 19 6 20 ``` 21 22 ## Related Functions 23 24 * [`floor`](/language/functions/floor), which rounds to the nearest whole number _less than_ 25 or equal.