31 lines
339 B
Markdown
31 lines
339 B
Markdown
![]() |
---
|
||
|
title: "ceil"
|
||
|
excerpt: "Computes the smallest integer greater than or equal to a number."
|
||
|
layout: manual
|
||
|
---
|
||
|
|
||
|
Computes the smallest integer greater than or equal to a number.
|
||
|
|
||
|
|
||
|
|
||
|
```
|
||
|
ceil(num: number) -> number
|
||
|
```
|
||
|
|
||
|
### Examples
|
||
|
|
||
|
```kcl
|
||
|
const myVar = ceil(4.5)
|
||
|
```
|
||
|
|
||
|
### Arguments
|
||
|
|
||
|
* `num`: `number` (REQUIRED)
|
||
|
|
||
|
### Returns
|
||
|
|
||
|
`number`
|
||
|
|
||
|
|
||
|
|