even
FEEL built-in function · FEEL numeric functions
even(number)
Returns true if the number is an even integer.
Parameters
| Parameter | Type | Description |
|---|---|---|
| number | number | the value to test |
Examples
even(5)
false
Try it ↑
even(2)
true
Try it ↑
Edge cases and null handling
even(0)
true
Try it ↑
even(-2)
true
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).