github.com/muratcelep/terraform@v1.1.0-beta2-not-internal-4/website/docs/language/functions/ceil.html.md (about) 1 --- 2 layout: "language" 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 `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 ``` 18 > ceil(5) 19 5 20 > ceil(5.1) 21 6 22 ``` 23 24 ## Related Functions 25 26 * [`floor`](./floor.html), which rounds to the nearest whole number _less than_ 27 or equal.