abs
FEEL built-in function · FEEL numeric functions
abs(n)
Returns the absolute value of a number or duration.
Parameters
| Parameter | Type | Description |
|---|---|---|
| n | number or duration | the value |
Examples
abs(-10)
10
Try it ↑
abs(duration("-PT5H"))
PT5H
Try it ↑
Edge cases and null handling
abs("x")
null
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).