ceiling
FEEL built-in function · FEEL numeric functions
ceiling(n, scale?)
Rounds towards positive infinity at the given scale.
Parameters
| Parameter | Type | Description |
|---|---|---|
| n | number | the number to round up |
| scale | number | decimal digits to keep (optional, default 0) |
Examples
ceiling(1.5)
2
Try it ↑
ceiling(-1.56, 1)
-1.5
Try it ↑
Edge cases and null handling
ceiling(-1.5)
-1
Try it ↑
Part of FEEL numeric functions: a side-by-side rounding table, how FEEL number equality works, and every numeric function with its edge cases.
Related functions
Defined by the OMG DMN 1.6 specification, chapter 10.3.4 (built-in functions).