Rounds a number up to the nearest integer greater than or equal to the input.
Same as input typeDiperbarui: 13 Jun 2026CEIL(expression)Numeric value to round up
1 SELECT 2 value, 3 CEIL(value) as ceiling 4 FROM UNNEST([1.1, 2.5, 3.9, -1.5, -2.9]) as value;
Rounds to the nearest integer upward.
| value | ceiling |
|---|---|
| 1.1 | 2 |
| 2.5 | 3 |
| 3.9 | 4 |
| -1.5 | -1 |
| ... 1 baris lainnya | |
1 SELECT 2 total_items, 3 items_per_page, 4 CEIL(total_items / items_per_page) as total_pages 5 FROM `project.dataset.pagination`;
Determines the number of pages required.
Sudah paham CEIL? Latih langsung di browser
Latihan interaktif, langsung di browser.