CEIL
All functions > MATH > CEIL
Rounds a number up to the nearest integer (ceiling function).
Syntax
CEIL(expr) sql
Arguments
| Parameter | Type | Required | Description |
|---|---|---|---|
number | DOUBLE | Yes | The number to round up |
Returns
BIGINT - Integer result of rounding up
Notes
- Always rounds towards positive infinity
CEIL(2.1) = 3,CEIL(2.9) = 3CEIL(-2.1) = -2,CEIL(-2.9) = -2- Returns NULL if the input is NULL
- For exact integers, returns the same value