# CEIL

將給定輸入向上捨入至最接近的整數。

這是 [`CEILING`](https://help.qlik.com/zh-TW/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/mathematical/ceiling.htm) 函數的別名。

## 語法

```
CEIL(X)
```

## 引數

#### X

類型： `numeric`

數值。

## 傳回

類型：與輸入相同

`X` 無條件進位至最接近的整數。

***

## 範例

| X | 輸出 |
| --- | --- |
| 0.13523523 | 1.0 |
| -1.1 | -1.0 |
| 1 | 1 |
| 1 + 1 | 2 |
| 0 | 0 |
| -1 | -1 |
| -1 - 5 | -6 |