mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-11-29 02:17:42 +08:00
* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
7 lines
676 B
Markdown
7 lines
676 B
Markdown
# CEILING
|
|
|
|
The `CEILING()` function in SQL returns the smallest integer greater than or equal to a given numeric value. It's useful when you need to round up a number to the nearest whole number, regardless of whether the number is already an integer or a decimal. For example, `CEILING(4.2)` would return `5`, and `CEILING(-4.7)` would return `-4`. This function is commonly used in scenarios where rounding up is necessary, such as calculating the number of pages needed to display a certain number of items when each page has a fixed capacity.
|
|
|
|
Visit the following resources to learn more:
|
|
|
|
- [@article@SQL CEILING](https://www.w3schools.com/sql/func_sqlserver_ceiling.asp) |