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